diff --git a/src/chat/misc.c b/src/chat/misc.c index c1b7d7e..4af1c13 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -161,7 +161,7 @@ char *read_socket_raw(int socket) { //FIND THE SENT SIZE content_size = 0; - if (ioctl(socket, FIONREAD, &content_size) < 0 || content_size <= 0) continue; + if (ioctl(socket, FIONREAD, &content_size) < 0 || content_size <= 0) continue; //TODO: Infinite loop //ALLOCATE content_buffer = why2_realloc(content_buffer, content_size + 1);