summaryrefslogtreecommitdiffstats
path: root/include/proto.h
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 /include/proto.h
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 'include/proto.h')
-rw-r--r--include/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h
index 06e22315..b0a8b77d 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -294,6 +294,7 @@ int i_get_key();
void add_io(int fd, int timeout);
int igetkey();
void oflush();
+int strip_ansi(char *buf, char *str, int mode);
int oldgetdata(int line, int col, char *prompt, char *buf, int len, int echo);
void output(char *s, int len);
void init_alarm();
@@ -597,7 +598,6 @@ int u_register();
int u_list();
/* vote */
-int strip_ansi(char *buf, char *str, int mode);
void b_suckinfile(FILE *fp, char *fname);
int b_results();
int b_vote();