From b2924405ae1d89e36a417cc43aaeba7a720f1290 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 09:32:09 +0200 Subject: conf: use g_ascii_strcasecmp() instead of strcasecmp() strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/conf.c b/src/conf.c index 6f3c9ace7..608b4804b 100644 --- a/src/conf.c +++ b/src/conf.c @@ -59,11 +59,11 @@ static int get_bool(const char *value) static const char *f[] = { "no", "false", "0", NULL }; for (x = t; *x; x++) { - if (!strcasecmp(*x, value)) + if (!g_ascii_strcasecmp(*x, value)) return 1; } for (x = f; *x; x++) { - if (!strcasecmp(*x, value)) + if (!g_ascii_strcasecmp(*x, value)) return 0; } return CONF_BOOL_INVALID; -- cgit v1.2.3