summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@netbsd.org>2014-01-05 19:10:56 +0000
committerJoerg Sonnenberger <joerg@netbsd.org>2014-01-05 19:10:56 +0000
commit5e614e747c24e529f84dbfb18721534f909128e9 (patch)
tree6b95f33544f611ed2bc6889a77a346526e7c4d0e /html.c
parentbfc2a1a7b08ccfe41610d07abb12b2eca5139716 (diff)
downloadmandoc-5e614e747c24e529f84dbfb18721534f909128e9.tar.gz
Tag functions with format strings as arguments as printf-like.
Fix one case where a non-literal is used as format string. Fix another case where a variable is formatted using the wrong type.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 8644f284..b61e60ac 100644
--- a/html.c
+++ b/html.c
@@ -722,7 +722,7 @@ buffmt_man(struct html *h,
bufcat(h, sec ? sec : "1");
break;
case('N'):
- bufcat_fmt(h, name);
+ bufcat_fmt(h, "%s", name);
break;
default:
bufncat(h, p, 2);