1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 00:06:46 +02:00

Fix a bunch of Wformat-truncation warnings due to snprintf() misuse

This commit is contained in:
jfreegman
2020-10-24 14:44:41 -04:00
parent 26b5fe8f9d
commit 4c302da503
5 changed files with 16 additions and 15 deletions

View File

@ -269,7 +269,7 @@ void *lookup_thread_func(void *data)
memset(&recv_data, 0, sizeof(struct Recv_Curl_Data));
char post_data[MAX_STR_SIZE];
char post_data[MAX_STR_SIZE + 30];
snprintf(post_data, sizeof(post_data), "{\"action\": 3, \"name\": \"%s\"}", name);