diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-11-03 17:32:12 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-11-03 17:32:12 +0300 |
commit | 7f2244a075396f152f9fb6711ffdb33e3e5125d3 (patch) | |
tree | 7103bcebaad0c5a20920407a1fdc45fd48706f17 | |
parent | e3d3e31606aa9a6635af0434797fc2fe842a6a6a (diff) | |
download | rspamd-0.3.3.tar.gz rspamd-0.3.3.zip |
Performance critical fix0.3.3
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1220,7 +1220,7 @@ url_try_text (memory_pool_t *pool, const gchar *begin, gsize len, gint *res, gch *url_str = NULL; } if (res) { - *res = strlen (matcher->pattern); + *res = (pos - begin) + strlen (matcher->pattern); } return TRUE; } |