From 951a736ea97701dcde48c6085a596de96bafce45 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sat, 22 Nov 2008 15:44:17 +0000 Subject: * Hunted down the simpler 64bit pointer truncations. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13380 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index cb438701c..48e9a0720 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8739,7 +8739,7 @@ int atcommand_commands(const int fd, struct map_session_data* sd, const char* co slen = (unsigned int)strlen(atcommand_info[i].command); // flush the text buffer if this command won't fit into it - if( ((CHATBOX_SIZE-1+(int)line_buff)-(int)cur) < (int)slen ) + if( slen + cur - line_buff >= CHATBOX_SIZE ) { clif_displaymessage(fd,line_buff); cur = line_buff; -- cgit v1.2.3-70-g09d2