diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-01-30 01:44:57 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-01-30 01:44:57 +0000 |
commit | 9164f247c2e6e7cc61f1066c1096e4eb7641cde6 (patch) | |
tree | e8528a0cd88b89a74e6be6555a82b02c7964aaaf /content/urldb.c | |
parent | 1952b8b9ba8c7dcea577ef364e8e6e091072c6c1 (diff) | |
download | netsurf-9164f247c2e6e7cc61f1066c1096e4eb7641cde6.tar.gz netsurf-9164f247c2e6e7cc61f1066c1096e4eb7641cde6.tar.bz2 |
Ensure plq is terminated when looking for an URL path.
Ensure fetchcache_redirect() normalizes the redirect destination.
svn path=/trunk/netsurf/; revision=3807
Diffstat (limited to 'content/urldb.c')
-rw-r--r-- | content/urldb.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |