summaryrefslogtreecommitdiff
path: root/framebuffer/findfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/findfile.c')
-rw-r--r--framebuffer/findfile.c5
1 files changed, 3 insertions, 2 deletions
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 <string.h>
#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;