Fix uninitialised data in URL bar

svn path=/trunk/netsurf/; revision=6614
This commit is contained in:
Rob Kendrick 2009-02-24 19:17:58 +00:00
parent b6c4a4589f
commit c4105e4efe

View File

@ -212,6 +212,7 @@ fb_widget_url_input(struct fb_widget *widget, struct gui_window *g, int value)
} else {
widget->text = realloc(widget->text, input_idx + 2); /* allow for new character and null */
widget->text[input_idx] = value;
widget->text[input_idx + 1] = '\0';
input_idx++;
}
fb_redraw_widget(url_widget);