aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2006-12-27 02:15:24 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2006-12-27 02:15:24 +0000
commitd26d1ac3875310bfd09c0016d66363da10f33ffa (patch)
treedc25d3a4b4e47c26253156faf21101656c39bb43 /file.c
parent[w3m-dev 04185] display <em> and <i> elements with bold letters. (diff)
downloadw3m-d26d1ac3875310bfd09c0016d66363da10f33ffa.tar.gz
w3m-d26d1ac3875310bfd09c0016d66363da10f33ffa.zip
* [SECURITY] fix format string vulnerability
* file.c (inputAnswer) fix format string bug
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 4c7caaf..e48965f 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.249 2006/12/10 11:06:12 inu Exp $ */
+/* $Id: file.c,v 1.250 2006/12/27 02:15:24 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -8021,7 +8021,7 @@ inputAnswer(char *prompt)
ans = inputChar(prompt);
}
else {
- printf(prompt);
+ printf("%s", prompt);
fflush(stdout);
ans = Strfgets(stdin)->ptr;
}