This commit is contained in:
irungentoo 2014-10-03 14:00:39 -04:00
commit 6687a05650
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -1324,9 +1324,13 @@ static void handle_message_packet_group(Group_Chats *g_c, int groupnumber, const
if (msg_data_len == 0)
return;
uint8_t newmsg[msg_data_len + 1];
memcpy(newmsg, msg_data, msg_data_len);
newmsg[msg_data_len] = 0;
//TODO
if (g_c->message_callback)
g_c->message_callback(g_c->m, groupnumber, index, msg_data, msg_data_len, g_c->message_callback_userdata);
g_c->message_callback(g_c->m, groupnumber, index, newmsg, msg_data_len, g_c->message_callback_userdata);
break;
}