From 793d466edfa715e29b1d6141f42a7a837c4f446a Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sun, 25 May 2008 15:51:30 +0000 Subject: - 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 --- content/fetchers/fetch_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content') 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) { -- cgit v1.2.3