From d9fe24b166476718c315371d2c7b777a63b09d03 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 Mar 2023 18:20:06 +0100 Subject: [PATCH] added json syntax todo --- 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 53f4b91..bea7293 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -243,7 +243,7 @@ void why2_send_socket(char *text, char *username, int socket) struct json_object *json = json_tokener_parse("{}"); //COPY text INTO text_copy (WITHOUT LAST CHARACTER WHEN NEWLINE IS AT THE END) - if (text[length_buffer - 1] == '\n') length_buffer--; + if (text[length_buffer - 1] == '\n') length_buffer--; //TODO: Remove json syntax strncpy(text_copy, text, length_buffer); //ADD OBJECTS