From 7df46597e17ff7af4a660ab47673fe2cabc91db6 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 9 Mar 2008 12:01:16 +0000 Subject: Use g_ascii_str{,n}casecmp for case insensitive comparison with ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/levels.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/levels.c') diff --git a/src/core/levels.c b/src/core/levels.c index 2c972b3f..587e1432 100644 --- a/src/core/levels.c +++ b/src/core/levels.c @@ -53,10 +53,10 @@ int level_get(const char *level) { int n, len, match; - if (g_strcasecmp(level, "ALL") == 0 || strcmp(level, "*") == 0) + if (g_ascii_strcasecmp(level, "ALL") == 0 || strcmp(level, "*") == 0) return MSGLEVEL_ALL; - if (g_strcasecmp(level, "NEVER") == 0) + if (g_ascii_strcasecmp(level, "NEVER") == 0) return MSGLEVEL_NEVER; len = strlen(level); -- cgit v1.2.3