# HG changeset patch # User Sadrul Habib Chowdhury # Date 1161121569 0 # Node ID 61416f315d1c0780b58d1df563d7acc14b59c874 # Parent ab10f1467acb9ec392062f312799f3faeebfe4e8 [gaim-migrate @ 17502] This should fix the last crash. committer: Tailor Script diff -r ab10f1467acb -r 61416f315d1c console/libgnt/gntentry.c --- a/console/libgnt/gntentry.c Tue Oct 17 20:44:05 2006 +0000 +++ b/console/libgnt/gntentry.c Tue Oct 17 21:46:09 2006 +0000 @@ -370,9 +370,10 @@ if (entry->max && g_utf8_pointer_to_offset(entry->start, entry->end) >= entry->max) continue; - if (entry->end - entry->start >= entry->buffer) + if (entry->end + len - entry->start >= entry->buffer) { - char *tmp = g_strdup_printf(entry->start); + /* This will cause the buffer to grow */ + char *tmp = g_strdup_printf("%s%*s", entry->start, len, ""); gnt_entry_set_text(entry, tmp); g_free(tmp); }