diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-09-08 19:45:45 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2008-09-08 19:45:45 +0400 |
commit | f1e17a0d63485d6317fc5d83b57618cfc08dea44 (patch) | |
tree | f7220859033f813299e4a7c66eeb4588f431e4b7 /test | |
parent | 5237a665760b680f2f2765322238b53c5988a40c (diff) | |
download | rspamd-f1e17a0d63485d6317fc5d83b57618cfc08dea44.tar.gz rspamd-f1e17a0d63485d6317fc5d83b57618cfc08dea44.zip |
* Fix url length while passing them to normalizer
TODO: fix html parsing regexp (now it doesn't work)
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_url_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c index 17565de80..5a4d9e5ba 100644 --- a/test/rspamd_url_test.c +++ b/test/rspamd_url_test.c @@ -31,10 +31,10 @@ rspamd_url_test_func () text = g_byte_array_new(); text->data = (gchar *)test_text; - text->len = sizeof (test_text); + text->len = strlen (test_text); html = g_byte_array_new(); html->data = (gchar *)test_html; - html->len = sizeof (test_html); + html->len = strlen (test_html); bzero (&task, sizeof (task)); TAILQ_INIT (&task.urls); |