1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 20:43:02 +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);
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);
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);
init_messages.msgs = new_msgs;