added json syntax todo

This commit is contained in:
Václav Šmejkal 2023-03-25 18:20:06 +01:00
parent 85834544aa
commit d9fe24b166
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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