summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-11-06 21:58:53 +0000
committerVincent Sanders <vince@kyllikki.org>2018-11-06 21:58:53 +0000
commit7264ff6f4da719671eb170cb23d80d7fe4c2d1fe (patch)
tree218a827e9337cd91fdad176af16fe9ad979fedfe
parent3fd6f04e520872efa19ba2a9fd22b324d8104f2e (diff)
downloadnetsurf-7264ff6f4da719671eb170cb23d80d7fe4c2d1fe.tar.gz
netsurf-7264ff6f4da719671eb170cb23d80d7fe4c2d1fe.tar.bz2
ensure url buffer is sufficient to not truncate output
-rw-r--r--content/urldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 4bdb10e66..c4a5a6b22 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -2969,7 +2969,7 @@ nserror urldb_load(const char *filename)
for (i = 0; i < urls; i++) {
struct path_data *p = NULL;
char scheme[64], ports[10];
- char url[64 + 3 + 256 + 6 + 4096 + 1];
+ char url[64 + 3 + 256 + 6 + 4096 + 1 + 1];
unsigned int port;
bool is_file = false;
nsurl *nsurl;