mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
Fix length of buffer in previous change - one too short before
svn path=/trunk/netsurf/; revision=3358
This commit is contained in:
parent
9964008dc0
commit
dabd37b0b2
@ -347,7 +347,7 @@ gboolean nsgtk_openfile_open(GtkWidget *widget, gpointer data)
|
|||||||
current_model->top_level);
|
current_model->top_level);
|
||||||
char *filename = gtk_file_chooser_get_filename(
|
char *filename = gtk_file_chooser_get_filename(
|
||||||
GTK_FILE_CHOOSER(wndOpenFile));
|
GTK_FILE_CHOOSER(wndOpenFile));
|
||||||
char *url = malloc(strlen(filename) + strlen("file://"));
|
char *url = malloc(strlen(filename) + strlen("file://") + 1);
|
||||||
|
|
||||||
sprintf(url, "file://%s", filename);
|
sprintf(url, "file://%s", filename);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user