aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
commit5dbf570b7df0e7c9770432884f95c14b193b5b30 (patch)
tree547448e51751b47179c46b19b9d26f2991642b30 /src/message.c
parent616e4a7d03fba715185f55d1298cc09377313591 (diff)
downloadrspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.tar.gz
rspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.zip
* Fix many compile time warnings and polish code
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/message.c b/src/message.c
index 64467c827..561c49457 100644
--- a/src/message.c
+++ b/src/message.c
@@ -181,12 +181,12 @@ strip_html_tags (GByteArray *src, int *stateptr)
case 'e':
/* !DOCTYPE exception */
if (state == 3 && p > src->data + 6
- && tolower(*(p-1)) == 'p'
- && tolower(*(p-2)) == 'y'
- && tolower(*(p-3)) == 't'
- && tolower(*(p-4)) == 'c'
- && tolower(*(p-5)) == 'o'
- && tolower(*(p-6)) == 'd') {
+ && g_ascii_tolower(*(p-1)) == 'p'
+ && g_ascii_tolower(*(p-2)) == 'y'
+ && g_ascii_tolower(*(p-3)) == 't'
+ && g_ascii_tolower(*(p-4)) == 'c'
+ && g_ascii_tolower(*(p-5)) == 'o'
+ && g_ascii_tolower(*(p-6)) == 'd') {
state = 1;
break;
}