mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 04:12:03 +03:00
Fix uninitialised data in URL bar
svn path=/trunk/netsurf/; revision=6614
This commit is contained in:
parent
b6c4a4589f
commit
c4105e4efe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user