summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-01-18 21:23:02 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-01-18 21:23:02 +0000
commit18c8f5f46f18a4f2be330cfc850f6e18a0742e98 (patch)
tree6f802eb54e231998d137e76d8db54b53c018766e /desktop
parentc74bf433c3357935a150ccc617d593eb1f673194 (diff)
downloadnetsurf-18c8f5f46f18a4f2be330cfc850f6e18a0742e98.tar.gz
netsurf-18c8f5f46f18a4f2be330cfc850f6e18a0742e98.tar.bz2
Let the frontend construct the correct URL for the default search ico.
This fixes bug #2057
Diffstat (limited to 'desktop')
-rw-r--r--desktop/searchweb.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/desktop/searchweb.c b/desktop/searchweb.c
index 30b424cb3..d42919d2d 100644
--- a/desktop/searchweb.c
+++ b/desktop/searchweb.c
@@ -236,14 +236,7 @@ void search_web_retrieve_ico(bool localdefault)
if (localdefault) {
if (search_default_ico_location == NULL)
return;
- url = malloc(SLEN("file://") + strlen(
- search_default_ico_location) + 1);
- if (url == NULL) {
- warn_user(messages_get("NoMemory"), 0);
- return;
- }
- strcpy(url, "file://");
- strcat(url, search_default_ico_location);
+ url = path_to_url(search_default_ico_location);
} else {
url = search_web_ico_name();
}