diff options
author | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2007-01-02 14:02:22 +0000 |
---|---|---|
committer | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2007-01-02 14:02:22 +0000 |
commit | 019407f8fe384aaddf81473f432188d80397a43f (patch) | |
tree | 1791ee710dd60ed6697e7bc6cd5bb9e06baff138 /www/w3m/files/patch-file.c | |
parent | fix build on FreeBSD 4 (diff) |
Fix a format string vulnerability.
Security: http://sourceforge.net/tracker/index.php?func=detail&aid=1612792&group_id=39518&atid=425439
Notes
Notes:
svn path=/head/; revision=181274
Diffstat (limited to 'www/w3m/files/patch-file.c')
-rw-r--r-- | www/w3m/files/patch-file.c | 13 |
1 files changed, 11 insertions, 2 deletions
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; } |