summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-23 11:33:29 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-05-23 11:33:29 +0800
commit1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f (patch)
tree99592f5715378ba3edfc9be4802ea3dca3a7131d
parenta6791f8eabb314185765cf54975aad5d791f13dd (diff)
downloadpttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar.gz
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar.bz2
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar.lz
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar.xz
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.tar.zst
pttbbs-1eb01fd5c3a2c09a3c9fb897e00b309c8bb3ff5f.zip
Clear buffer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index b2307476..7495bcba 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -3436,6 +3436,7 @@ AngelNotOnline(){
move(4, 0);
clrtobot();
+ buf[0] = 0;
fgets(buf, sizeof(buf), fp);
if (strncmp(buf, "%%[", 3) == 0) {
chomp(buf);