summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index 08710780..4a9be8e7 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -704,7 +704,7 @@ mandoc_strntou(const char *p, size_t sz, int base)
return(-1);
memcpy(buf, p, sz);
- buf[sz] = '\0';
+ buf[(int)sz] = '\0';
errno = 0;
v = strtol(buf, &ep, base);