From 019407f8fe384aaddf81473f432188d80397a43f Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Tue, 2 Jan 2007 14:02:22 +0000 Subject: Fix a format string vulnerability. Security: http://sourceforge.net/tracker/index.php?func=detail&aid=1612792&group_id=39518&atid=425439 --- www/w3m/files/patch-file.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'www/w3m/files/patch-file.c') diff --git a/www/w3m/files/patch-file.c b/www/w3m/files/patch-file.c index 07868a248356..1fbe9228c75b 100644 --- a/www/w3m/files/patch-file.c +++ b/www/w3m/files/patch-file.c @@ -1,5 +1,5 @@ ---- file.c.orig Sun Feb 19 01:37:44 2006 -+++ file.c Sun Feb 19 01:39:59 2006 +--- file.c.orig Tue Jan 2 22:11:50 2007 ++++ file.c Tue Jan 2 22:14:11 2007 @@ -262,7 +262,8 @@ { return (type == NULL || type[0] == '\0' || @@ -10,6 +10,15 @@ } static int +@@ -7799,7 +7800,7 @@ + ans = inputChar(prompt); + } + else { +- printf(prompt); ++ printf("%s", prompt); + fflush(stdout); + ans = Strfgets(stdin)->ptr; + } @@ -7891,7 +7892,7 @@ uf->scheme = SCM_LOCAL; } -- cgit v1.2.3