summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.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/kaede.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/kaede.c')
-rw-r--r--mbbsd/kaede.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index f166eb73..42730c1f 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -49,9 +49,11 @@ Ptt_prints(char *str, int mode)
"%d", cuser.money);
break;
default:
+ /* It's saver not to send these undefined escape string.
strbuf[w++] = '\033';
strbuf[w++] = '*';
strbuf[w++] = str[r];
+ */
}
}
}