From d26d1ac3875310bfd09c0016d66363da10f33ffa Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 27 Dec 2006 02:15:24 +0000 Subject: * [SECURITY] fix format string vulnerability * file.c (inputAnswer) fix format string bug --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') 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 #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; } -- cgit v1.2.3