summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-01 01:40:52 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-01 01:40:52 +0800
commitce591a73e5bafcf08b93da768b8c76c5e824f599 (patch)
tree416921f99fdfb349e7f0a6655cae28e1e87d67c7 /mbbsd/chat.c
parent5507859f58d2a4dd6ff14f441c5c0f51ed4c5928 (diff)
downloadpttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.gz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.bz2
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.lz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.xz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.zst
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.zip
make gcc33 happy
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c6
1 files changed, 3 insertions, 3 deletions
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);