Fixed string handling on incomming messages

This commit is contained in:
James Booth
2012-02-19 19:36:34 +00:00
parent d151b2d088
commit a104c772e0

View File

@@ -93,7 +93,7 @@ void win_get_recipient(char *recipient)
void win_show_incomming_msg(char *from, char *message)
{
char from_cpy[100];
char from_cpy[strlen(from) + 1];
strcpy(from_cpy, from);
char *short_from = strtok(from_cpy, "/");