From: Vsevolod Stakhov Date: Fri, 13 Mar 2015 13:41:04 +0000 (+0000) Subject: Set length accordingly to stipped size. X-Git-Tag: 0.9.0~499 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1f268befed0cd5ef02d93a2420573ea2821406c;p=rspamd.git Set length accordingly to stipped size. --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 53948ba89..e43ff3724 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1431,6 +1431,7 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len, /* We have extra data at the end of uri, so we are ignoring it for now */ p = rspamd_mempool_alloc (pool, end - uristring + 1); rspamd_strlcpy (p, uristring, end - uristring + 1); + len = end - uristring ; } for (i = 0; i < UF_MAX; i ++) {