From f010f32adb51f7d4d2648abd475a900ecf07bafa Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 3 Feb 2008 17:30:53 +0000 Subject: Added a missing client update when the mute status is manually cancelled by a GM (followup to r12079) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12169 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/socket.c b/src/common/socket.c index 7f7160f26..2e2182784 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -575,7 +575,7 @@ int realloc_writefifo(int fd, size_t addition) while( session[fd]->wdata_size + addition > newsize ) newsize += newsize; } else - if( session[fd]->max_wdata >= 2*(session[fd]->flag.server?FIFOSIZE_SERVERLINK:WFIFO_SIZE) + if( session[fd]->max_wdata >= (size_t)2*(session[fd]->flag.server?FIFOSIZE_SERVERLINK:WFIFO_SIZE) && (session[fd]->wdata_size+addition)*4 < session[fd]->max_wdata ) { // shrink rule, shrink by 2 when only a quarter of the fifo is used, don't shrink below nominal size. newsize = session[fd]->max_wdata / 2; -- cgit v1.2.3-60-g2f50