summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:42:37 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-28 16:42:37 +0800
commit6029c7046537609df3b5c73c3159abfade9963ef (patch)
treed20a5301d02057c864a8376d6eefc818adf8b39e
parent2edad035c1c11196abf0382d715e3ef6359eabf0 (diff)
downloadpttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar.gz
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar.bz2
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar.lz
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar.xz
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.tar.zst
pttbbs-6029c7046537609df3b5c73c3159abfade9963ef.zip
avoid format string bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@980 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/screen.c b/pttbbs/mbbsd/screen.c
index 832abfca..1f27dd86 100644
--- a/pttbbs/mbbsd/screen.c
+++ b/pttbbs/mbbsd/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.15 2003/05/18 07:31:09 in2 Exp $ */
+/* $Id: screen.c,v 1.16 2003/06/28 08:42:37 kcwu Exp $ */
#include "bbs.h"
#ifdef SUPPORT_GB
@@ -498,7 +498,7 @@ mprints(int y, int x, char *str)
{
move(y, x);
clrtoeol();
- prints(str);
+ prints("%s",str);
}
void