From a104c772e003e6ff3e31b2a967865c184b5d4991 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 19 Feb 2012 19:36:34 +0000 Subject: [PATCH] Fixed string handling on incomming messages --- windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows.c b/windows.c index 7b89e6f0..676afcb9 100644 --- a/windows.c +++ b/windows.c @@ -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, "/");