From d9597fb775134ff4c4ae106fdb7f3214b5af2463 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sun, 5 Jan 2014 19:10:56 +0000 Subject: 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. --- html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 9d28b427..30ed53e4 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.152 2013/08/08 20:07:47 schwarze Exp $ */ +/* $Id: html.c,v 1.153 2014/01/05 19:10:56 joerg Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -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); -- cgit v1.2.3