From 2d5a18d6671159fe82ea753bac66b5763d1b0241 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 29 Aug 2024 23:35:46 +0200 Subject: [PATCH] added infinite loop todo i mean yk, it works but its shit --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);