diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-07-11 20:48:06 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-07-11 20:48:06 +0000 |
commit | 82af25f4e29644c2c27c96ae7a5309d16549064c (patch) | |
tree | 6a41e2ce778d8ee3b9c92501872f341eef5b644a | |
parent | d4c519cc05536486c202a399826633b1b025c22a (diff) | |
download | netsurf-82af25f4e29644c2c27c96ae7a5309d16549064c.tar.gz netsurf-82af25f4e29644c2c27c96ae7a5309d16549064c.tar.bz2 |
Remove desbug
svn path=/trunk/netsurf/; revision=10630
-rwxr-xr-x | amiga/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |