diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-13 13:41:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-13 13:45:15 +0000 |
commit | a1f268befed0cd5ef02d93a2420573ea2821406c (patch) | |
tree | 67f54f5338d4187d6d80d2bbfcaa030a29d5cabe /src/libserver/url.c | |
parent | 767d938586617fa66cef270b37b7e89a7c78830c (diff) | |
download | rspamd-a1f268befed0cd5ef02d93a2420573ea2821406c.tar.gz rspamd-a1f268befed0cd5ef02d93a2420573ea2821406c.zip |
Set length accordingly to stipped size.
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ++) { |