diff options
Diffstat (limited to 'debug')
-rw-r--r-- | debug/netsurfd.c | 10 |
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) { } |