aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-24 15:05:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-24 15:05:56 +0000
commit47e381136c9a2594ff3f832564011758c1fe47fc (patch)
tree2b3f1ac6001f1aec8c577138bb440f0f9abb089f /mdoc_html.c
parent974dbdc2d409238ee7e08680361e91683a986c41 (diff)
downloadmandoc-47e381136c9a2594ff3f832564011758c1fe47fc.tar.gz
mandoc-47e381136c9a2594ff3f832564011758c1fe47fc.tar.zst
mandoc-47e381136c9a2594ff3f832564011758c1fe47fc.zip
Lint-fixes (noop).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index d7a308c3..bca3de78 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.8 2009/09/24 13:18:37 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.9 2009/09/24 15:05:56 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1596,8 +1596,8 @@ mdoc_fn_pre(MDOC_ARGS)
assert(n->child->string);
sp = n->child->string;
while ((ep = strchr(sp, ' '))) {
- sz = MIN(ep - sp, BUFSIZ - 1);
- (void)memcpy(nbuf, sp, sz);
+ sz = MIN((int)(ep - sp), BUFSIZ - 1);
+ (void)memcpy(nbuf, sp, (size_t)sz);
nbuf[sz] = '\0';
print_text(h, nbuf);
sp = ++ep;