mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 08:26:22 +00:00
Fixed string handling on incomming messages
This commit is contained in:
@@ -93,7 +93,7 @@ void win_get_recipient(char *recipient)
|
|||||||
|
|
||||||
void win_show_incomming_msg(char *from, char *message)
|
void win_show_incomming_msg(char *from, char *message)
|
||||||
{
|
{
|
||||||
char from_cpy[100];
|
char from_cpy[strlen(from) + 1];
|
||||||
strcpy(from_cpy, from);
|
strcpy(from_cpy, from);
|
||||||
|
|
||||||
char *short_from = strtok(from_cpy, "/");
|
char *short_from = strtok(from_cpy, "/");
|
||||||
|
|||||||
Reference in New Issue
Block a user