summaryrefslogtreecommitdiff
path: root/content/fetchers/fetch_data.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-05-25 15:51:30 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-05-25 15:51:30 +0000
commit793d466edfa715e29b1d6141f42a7a837c4f446a (patch)
tree7c18cdfe932ec3b48218d7d8ea1668cf438cc24c /content/fetchers/fetch_data.c
parente89c34657381b70fa129475577e1c51c754d6be1 (diff)
downloadnetsurf-793d466edfa715e29b1d6141f42a7a837c4f446a.tar.gz
netsurf-793d466edfa715e29b1d6141f42a7a837c4f446a.tar.bz2
- introduction of SLEN()
- enforce result of url_normalize() being NULL on failure - plug memory leak when url_normalize() fails svn path=/trunk/netsurf/; revision=4200
Diffstat (limited to 'content/fetchers/fetch_data.c')
-rw-r--r--content/fetchers/fetch_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/fetchers/fetch_data.c b/content/fetchers/fetch_data.c
index f6d817e64..1cc4b411a 100644
--- a/content/fetchers/fetch_data.c
+++ b/content/fetchers/fetch_data.c
@@ -158,7 +158,7 @@ static bool fetch_data_process(struct fetch_data_context *c)
}
/* skip the data: part */
- params = c->url + sizeof("data:") - 1;
+ params = c->url + SLEN("data:");
/* find the comma */
if ( (comma = strchr(params, ',')) == NULL) {