From 9164f247c2e6e7cc61f1066c1096e4eb7641cde6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 30 Jan 2008 01:44:57 +0000 Subject: Ensure plq is terminated when looking for an URL path. Ensure fetchcache_redirect() normalizes the redirect destination. svn path=/trunk/netsurf/; revision=3807 --- content/urldb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index cd4139423..4d5c59ae9 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -1827,6 +1827,9 @@ struct path_data *urldb_find_url(const char *url) return NULL; } + /* Ensure plq is terminated */ + *plq = '\0'; + copy = plq; if (components.path) { strcpy(copy, components.path); -- cgit v1.2.3