summaryrefslogtreecommitdiff
path: root/content/urldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/urldb.c')
-rw-r--r--content/urldb.c3
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);