summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 21:45:23 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-07 21:45:23 +0800
commit1b95e78d54466842ffe7be236a76c795a2e47fa7 (patch)
tree1eddf4f33870262c1eb9d7f2ee7f0a3203a4790d /common
parent989b11cc9a64f74cf2ae3a81a92610e680b4e591 (diff)
downloadpttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar.gz
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar.bz2
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar.lz
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar.xz
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.tar.zst
pttbbs-1b95e78d54466842ffe7be236a76c795a2e47fa7.zip
* fix: crashed for read_more case in tty_read.
* example: got waterball then SEGV * reason: telnet_process should take signed size_t. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common')
-rw-r--r--common/sys/telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sys/telnet.c b/common/sys/telnet.c
index b0c5f1d7..2f462867 100644
--- a/common/sys/telnet.c
+++ b/common/sys/telnet.c
@@ -79,7 +79,7 @@ void telnet_send_init_cmds(int fd)
write(fd, telnet_init_cmds, sizeof(telnet_init_cmds));
}
-ssize_t telnet_process(TelnetCtx *ctx, unsigned char *buf, size_t size)
+ssize_t telnet_process(TelnetCtx *ctx, unsigned char *buf, ssize_t size)
{
/* process buffer */
if (size > 0) {