From f1e17a0d63485d6317fc5d83b57618cfc08dea44 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 8 Sep 2008 19:45:45 +0400 Subject: * Fix url length while passing them to normalizer TODO: fix html parsing regexp (now it doesn't work) --- test/rspamd_url_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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); -- cgit v1.2.3