From ec0270811e29dab261bc70183ef3f7d66ccf612b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 20 Feb 2002 12:44:23 +0000 Subject: [PATCH] stupid bug :) lines longer than 1024 chars made irssi crash. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2519 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 1148d076..42695917 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -37,7 +37,8 @@ static void entry_text_grow(GUI_ENTRY_REC *entry, int grow_size) return; entry->text_alloc = nearest_power(entry->text_alloc+grow_size); - entry->text = g_realloc(entry->text, entry->text_alloc); + entry->text = g_realloc(entry->text, + sizeof(unichar) * entry->text_alloc); } GUI_ENTRY_REC *gui_entry_create(int xpos, int ypos, int width, int utf8)