actually allocate the correct length when merging notifications, fixes case where the last character gets cut off

SVN revision: 76508
This commit is contained in:
Mike Blumenkrantz 2012-09-12 08:47:59 +00:00
parent 057a874039
commit 8a004228af
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ _notification_popup_merge(E_Notification *n)
len = strlen(body_old);
len += strlen(body_new);
len += 4; /* \xE2\x80\xA9 or <PS> */
len += 5; /* \xE2\x80\xA9 or <PS/> */
if (len < 65536) body_final = alloca(len + 1);
else body_final = malloc(len + 1);
/* Hack to allow e to include markup */