diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-24 18:38:11 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-24 18:38:11 +0300 |
commit | 5dbf570b7df0e7c9770432884f95c14b193b5b30 (patch) | |
tree | 547448e51751b47179c46b19b9d26f2991642b30 /src/message.c | |
parent | 616e4a7d03fba715185f55d1298cc09377313591 (diff) | |
download | rspamd-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.c | 12 |
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; } |