From a2d50b9302243590aba6b17d9ff70a88f95d1f15 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 1 Dec 2011 09:38:41 +0000 Subject: [PATCH] E notification: Fixed truncation of merged messages. SVN revision: 65765 --- src/modules/notification/e_mod_popup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index c7cb98920..180bf086a 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -178,8 +178,9 @@ _notification_popup_merge(E_Notification *n) len = strlen(body_old); len += strlen(body_new); - if (len < 65536) body_final = alloca(len + 5); - else body_final = malloc(len + 5); + len += 4; /* "" */ + if (len < 65536) body_final = alloca(len + 1); + else body_final = malloc(len + 1); snprintf(body_final, len + 1, "%s%s", body_old, body_new); /* printf("set body %s\n", body_final); */