# HG changeset patch # User Yoshiki Yazawa # Date 1216756397 -32400 # Node ID 97f11d057071f1303bc2451788edc17e69248628 # Parent e67b0231ba56f118cb9a6e0848ea7ce794db1f62 fixed "off by one" bug. diff -r e67b0231ba56 -r 97f11d057071 pidgin-twitter.c --- 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 == '&') {