mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
26a1aaa416
commit
ec0270811e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user