summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-11-26 21:06:14 +0000
committerJames Bursa <james@netsurf-browser.org>2006-11-26 21:06:14 +0000
commit8e530e68ae718f8675e7dcd41528d20e54a0d1bb (patch)
tree9e155163dbb605f1f162dd72db02c628eecbab74
parentec563e60ca5dea8f903f287ac2dc7bd5350772bd (diff)
downloadnetsurf-8e530e68ae718f8675e7dcd41528d20e54a0d1bb.tar.gz
Fix debug build.
svn path=/trunk/netsurf/; revision=3072
-rw-r--r--debug/netsurfd.c10
1 files changed, 10 insertions, 0 deletions
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) { }