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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user