commit 199e7f6b4b0d5f145080d0c29be7cdb05dcf4e3a
parent 6f78edf41feea447fd213163f663b45a9a6aa081
Author: ukai <ukai>
Date: Wed, 27 Dec 2006 02:15:24 +0000
* [SECURITY] fix format string vulnerability
* file.c (inputAnswer) fix format string bug
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-27 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [SECURITY] fix format string vulnerability
+ * file.c (inputAnswer) fix format string bug
+
2006-12-07 Hiroyuki Ito <ZXB01226@nifty.com>
* [w3m-dev 04185] Re: italic text
diff --git a/file.c b/file.c
@@ -8021,7 +8021,7 @@ inputAnswer(char *prompt)
ans = inputChar(prompt);
}
else {
- printf(prompt);
+ printf("%s", prompt);
fflush(stdout);
ans = Strfgets(stdin)->ptr;
}