From 95e4a737de53dc2f02a2db95b26151d9d494bc0c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 31 Mar 2010 13:59:57 +0000 Subject: rationalise the usage of the file scheme svn path=/trunk/netsurf/; revision=10221 --- framebuffer/findfile.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framebuffer/findfile.c') diff --git a/framebuffer/findfile.c b/framebuffer/findfile.c index 29b82588d..64d96fcb4 100644 --- a/framebuffer/findfile.c +++ b/framebuffer/findfile.c @@ -24,14 +24,15 @@ #include #include "utils/log.h" +#include "utils/url.h" #include "framebuffer/findfile.h" char *path_to_url(const char *path) { - char *r = malloc(strlen(path) + 7 + 1); + char *r = malloc(strlen(path) + FILE_SCHEME_PREFIX_LEN + 1); - strcpy(r, "file://"); + strcpy(r, FILE_SCHEME_PREFIX); strcat(r, path); return r; -- cgit v1.2.3