From 82af25f4e29644c2c27c96ae7a5309d16549064c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 11 Jul 2010 20:48:06 +0000 Subject: Remove desbug svn path=/trunk/netsurf/; revision=10630 --- amiga/misc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'amiga') diff --git a/amiga/misc.c b/amiga/misc.c index 04e38469a..956de1d32 100755 --- a/amiga/misc.c +++ b/amiga/misc.c @@ -70,7 +70,8 @@ char *url_to_path(const char *url) if (strncmp(url, "localhost", SLEN("localhost")) == 0) url += SLEN("localhost"); - url += SLEN("/"); + if (strncmp(url, "/", SLEN("/")) == 0) + url += SLEN("/"); url2 = malloc(strlen(url) + 2); strcpy(url2, url); @@ -122,7 +123,7 @@ char *path_to_url(const char *path) strcpy(r, "file:///"); strcat(r, newpath); -printf("ptu %s => %s\n",path, r); + return r; } -- cgit v1.2.3