diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-05-22 14:38:59 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-05-22 14:38:59 +0000 |
commit | 9feb8b694ce25bc7823dd9ea938557b4c45a1ad3 (patch) | |
tree | 6faeb61c0286e087ab385a1a321026a3b1a517d1 /riscos | |
parent | dca6e2370bde7a2fd5a0f5feb74c77cb0681b681 (diff) | |
download | netsurf-9feb8b694ce25bc7823dd9ea938557b4c45a1ad3.tar.gz netsurf-9feb8b694ce25bc7823dd9ea938557b4c45a1ad3.tar.bz2 |
[project @ 2004-05-22 14:38:59 by joty]
gui_gadget_combo() : fix for spurious crash when RISC OS menu gets shown.
svn path=/import/netsurf/; revision=888
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index d5dc634ec..e5d4af80c 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -883,7 +883,7 @@ void gui_gadget_combo(struct browser_window* bw, struct form_control* g, unsigne combo_menu->entries[count].icon_flags = wimp_ICON_TEXT | wimp_ICON_INDIRECTED | wimp_ICON_FILLED | wimp_ICON_VCENTRED | (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT) | (wimp_COLOUR_WHITE << wimp_ICON_BG_COLOUR_SHIFT) | (wimp_BUTTON_MENU_ICON << wimp_ICON_BUTTON_TYPE_SHIFT); combo_menu->entries[count].data.indirected_text.text = o->text; combo_menu->entries[count].data.indirected_text.validation = "\0"; - combo_menu->entries[count].data.indirected_text.size = strlen(o->text); + combo_menu->entries[count].data.indirected_text.size = strlen(o->text) + 1; } wimp_get_pointer_info(&pointer); |