summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-24 14:58:25 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-24 14:58:25 +0800
commit36b8776e3788b80fa07f4e43288bc60ab1d69b13 (patch)
tree1f4ec895fe0f0f6147a0dca582a2def8b96b8b75 /mbbsd/bbs.c
parenta2bd0bb8576c56e3221ecfd600700821076cf914 (diff)
downloadpttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.gz
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.bz2
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.lz
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.xz
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.zst
pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.zip
Rewrite strip_ansi() (also move from vote.c to io.c).
Using STRIP_ALL instead of 0 when calling strip_ansi. Fix some buffer overflow problem. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index b6f509f4..6ce918c7 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -603,7 +603,7 @@ do_general(int isbid)
}
}
getdata_buf(22, 0, "¼ÐÃD¡G", save_title, TTLEN, DOECHO);
- strip_ansi(save_title, save_title, 0);
+ strip_ansi(save_title, save_title, STRIP_ALL);
}
if (save_title[0] == '\0')
return FULLUPDATE;
@@ -2191,7 +2191,7 @@ bh_title_edit()
if (!genbuf[0])
return 0;
- strip_ansi(genbuf, genbuf, 0);
+ strip_ansi(genbuf, genbuf, STRIP_ALL);
strlcpy(bp->title + 7, genbuf, sizeof(bp->title) - 7);
substitute_record(fn_board, bp, sizeof(boardheader_t), currbid);
log_usies("SetBoard", currboard);