From e5371ff83e8481cb29f3b9dc1afcfbfa9178c06a Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 8 Apr 2005 13:43:47 +0000 Subject: "Bye-Bye Flying Horse" patch - a robust and clean TELNET protocol implementation - fixed hz lib (autoconvert) utf8 buffer overflow exploit - enabled term resizing in runtime, and even AYT! - eliminated the flying-horse delay in connecting stage git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2691 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/convert.h | 3 ++- include/proto.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/convert.h b/include/convert.h index 9ce0b75a..cafa08b7 100644 --- a/include/convert.h +++ b/include/convert.h @@ -6,6 +6,7 @@ #define CONV_GB 1 #define CONV_UTF8 2 -typedef ssize_t (* read_write_type)(int, void *, size_t); +typedef ssize_t (*read_write_type)(int, void *, size_t); +typedef ssize_t (*convert_type)(void *, ssize_t); #endif diff --git a/include/proto.h b/include/proto.h index d0544240..7daa496d 100644 --- a/include/proto.h +++ b/include/proto.h @@ -359,6 +359,7 @@ void talk_request(int sig); int reply_connection_request(const userinfo_t *uip); int establish_talk_connection(const userinfo_t *uip); void my_talk(userinfo_t * uin, int fri_stat, char defact); +ssize_t tty_read(unsigned char *buf, size_t max); /* menu */ void showtitle(const char *title, const char *mid); -- cgit v1.2.3