summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtk_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c
index b468e2e21..795d905d2 100644
--- a/gtk/gtk_gui.c
+++ b/gtk/gtk_gui.c
@@ -89,7 +89,7 @@ static char *find_resource(char *buf, const char *filename, const char *def)
static char *path_to_url(const char *path)
{
- char *r = malloc(strlen(path) + 7);
+ char *r = malloc(strlen(path) + 7 + 1);
strcpy(r, "file://");
strcat(r, path);