diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-20 12:44:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-20 12:44:23 +0000 |
commit | ec0270811e29dab261bc70183ef3f7d66ccf612b (patch) | |
tree | 716fb6aff34eb1ebb64901ff899e8cf07f2821c3 /src/fe-text | |
parent | 26a1aaa4165003df1d73e7f9d621e09bd905f53b (diff) | |
download | irssi-ec0270811e29dab261bc70183ef3f7d66ccf612b.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-entry.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |