1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 22:13:26 +01:00

fix error code

This commit is contained in:
Jfreegman 2014-08-25 19:55:00 -04:00
parent 21ef1788ca
commit 8bf4405fd0
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -189,12 +189,12 @@ static void queue_init_message(const char *msg)
char **new_msgs = realloc(init_messages.msgs, sizeof(char *) * init_messages.num); char **new_msgs = realloc(init_messages.msgs, sizeof(char *) * init_messages.num);
if (new_msgs == NULL) if (new_msgs == NULL)
exit_toxic_err("Failed in init_messages_prep", FATALERR_PROXY); exit_toxic_err("Failed in init_messages_prep", FATALERR_MEMORY);
new_msgs[i] = malloc(MAX_STR_SIZE); new_msgs[i] = malloc(MAX_STR_SIZE);
if (new_msgs[i] == NULL) if (new_msgs[i] == NULL)
exit_toxic_err("Failed in init_messages_prep", FATALERR_PROXY); exit_toxic_err("Failed in init_messages_prep", FATALERR_MEMORY);
snprintf(new_msgs[i], MAX_STR_SIZE, "%s", msg); snprintf(new_msgs[i], MAX_STR_SIZE, "%s", msg);
init_messages.msgs = new_msgs; init_messages.msgs = new_msgs;