changeset 137:97f11d057071

fixed "off by one" bug.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Wed, 23 Jul 2008 04:53:17 +0900
parents e67b0231ba56
children eaf5d2c4ada0
files pidgin-twitter.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin-twitter.c	Wed Jul 23 03:53:59 2008 +0900
+++ b/pidgin-twitter.c	Wed Jul 23 04:53:17 2008 +0900
@@ -97,7 +97,7 @@
     gint entlen;
 
     /* unescape &x; */
-    html = g_malloc0(strlen(src));
+    html = g_malloc0(strlen(src) + 1);
     ptr2 = html;
     for(ptr = src; *ptr; ) {
         if(*ptr == '&') {