From 8e530e68ae718f8675e7dcd41528d20e54a0d1bb Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 26 Nov 2006 21:06:14 +0000 Subject: Fix debug build. svn path=/trunk/netsurf/; revision=3072 --- debug/netsurfd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debug/netsurfd.c b/debug/netsurfd.c index 9caff8b79..59643d65b 100644 --- a/debug/netsurfd.c +++ b/debug/netsurfd.c @@ -211,6 +211,16 @@ char *url_to_path(const char *url) return strdup(url + 5); } +char *path_to_url(const char *path) +{ + char *r = malloc(strlen(path) + 7 + 1); + + strcpy(r, "file://"); + strcat(r, path); + + return r; +} + void tree_set_node_sprite(struct node *node, const char *sprite, const char *expanded) { } -- cgit v1.2.3