summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-12-26 17:46:04 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-12-26 17:46:04 +0800
commit36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e (patch)
treeed2762e77057b325266f5413b4482d7b39a121c5 /mbbsd/edit.c
parent86618fc1fff4cc2379bd65fe113e5586f34b4bc5 (diff)
downloadpttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar.gz
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar.bz2
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar.lz
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar.xz
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.tar.zst
pttbbs-36c134390f60ed96184dd3e3e7f6d28c2b5bbf5e.zip
use gcc's extension to check format string
and make compiler happier git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@588 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 0d77f9a8..1107a6f1 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1,4 +1,4 @@
-/* $Id: edit.c,v 1.22 2002/11/23 04:15:30 ptt Exp $ */
+/* $Id: edit.c,v 1.23 2002/12/26 09:46:04 kcwu Exp $ */
#include "bbs.h"
typedef struct textline_t {
struct textline_t *prev;
@@ -1575,7 +1575,7 @@ int
vedit(char *fpath, int saveheader, int *islocal)
{
FILE *fp1;
- char last = 0, buf[200]; /* the last key you press */
+ char last = 0; /* the last key you press */
int ch, foo;
int lastindent = -1;
int last_margin;
@@ -1649,6 +1649,7 @@ vedit(char *fpath, int saveheader, int *islocal)
}
/* 連續240個interval一樣 , 分明是在斂財
if (count >= 240) {
+ char buf[200];
snprintf(buf, sizeof(buf), "\033[1;33;46m%s\033[37m在\033[37;45m%s"
"\033[37m板違法賺錢 , %s\033[m", cuser.userid,
currboard, ctime(&now));