From dabd37b0b2e010bc77d8829039dc94b66dfce3f2 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Fri, 22 Jun 2007 15:23:42 +0000 Subject: [PATCH] Fix length of buffer in previous change - one too short before svn path=/trunk/netsurf/; revision=3358 --- gtk/gtk_scaffolding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtk_scaffolding.c b/gtk/gtk_scaffolding.c index 6c8a8cdce..e52d12c5f 100644 --- a/gtk/gtk_scaffolding.c +++ b/gtk/gtk_scaffolding.c @@ -347,7 +347,7 @@ gboolean nsgtk_openfile_open(GtkWidget *widget, gpointer data) current_model->top_level); char *filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER(wndOpenFile)); - char *url = malloc(strlen(filename) + strlen("file://")); + char *url = malloc(strlen(filename) + strlen("file://") + 1); sprintf(url, "file://%s", filename);