From ce591a73e5bafcf08b93da768b8c76c5e824f599 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 31 Dec 2002 17:40:52 +0000 Subject: make gcc33 happy git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/chat.c') diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 4c58b290..66954248 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -1,4 +1,4 @@ -/* $Id: chat.c,v 1.9 2002/07/22 19:02:00 in2 Exp $ */ +/* $Id: chat.c,v 1.10 2002/12/31 17:40:51 in2 Exp $ */ #include "bbs.h" static int chatline, stop_line; @@ -75,7 +75,7 @@ chat_recv(int fd, char *chatid) bptr = buf; while (c > 0) { len = strlen(bptr) + 1; - if (len > c && len < (sizeof buf / 2)) + if (len > c && (unsigned)len < (sizeof(buf)/ 2) ) break; if (*bptr == '/') { @@ -538,7 +538,7 @@ t_chat() break; } if (ch == Ctrl('D')) { - if (currchar < strlen(inbuf)) { + if ((size_t)currchar < strlen(inbuf)) { inbuf[69] = '\0'; memcpy(&inbuf[currchar], &inbuf[currchar + 1], 69 - currchar); move(b_lines - 1, currchar + chatid_len); -- cgit v1.2.3