summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-17 14:10:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-17 14:10:09 +0000
commit20d624cc7e815ef92d8c20af526ac85ce4042df8 (patch)
treeb90e3e99a38fd1e5ffeccc755037c2d49d1dc3de /mdoc_action.c
parent92611c25bc500e0a4cac5a5e0e3be02f71d4672d (diff)
downloadmandoc-20d624cc7e815ef92d8c20af526ac85ce4042df8.tar.gz
mandoc-20d624cc7e815ef92d8c20af526ac85ce4042df8.tar.zst
mandoc-20d624cc7e815ef92d8c20af526ac85ce4042df8.zip
Lint fixes.
Diffstat (limited to 'mdoc_action.c')
-rw-r--r--mdoc_action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_action.c b/mdoc_action.c
index bcfe939a..da66e739 100644
--- a/mdoc_action.c
+++ b/mdoc_action.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_action.c,v 1.14 2009/06/17 14:08:47 kristaps Exp $ */
+/* $Id: mdoc_action.c,v 1.15 2009/06/17 14:10:09 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -666,8 +666,8 @@ post_bl_head(POST_ARGS)
for (i = 0, nn = m->last->child; nn; nn = nn->next, i++)
/* Count children. */;
- n->args->argv[c].sz = i;
- n->args->argv[c].value = malloc(i * sizeof(char *));
+ n->args->argv[c].sz = (size_t)i;
+ n->args->argv[c].value = malloc((size_t)i * sizeof(char *));
for (i = 0, nn = m->last->child; nn; i++) {
n->args->argv[c].value[i] = nn->string;