From b546cf65bc7f360ab7eeb6a5a4a8ed0d8b5fc3d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Apr 2009 09:33:44 +0200 Subject: [PATCH] utils: use g_ascii_strcasecmp() instead of strcasecmp() strcasecmp() is locale dependent, making it a bad choice for internal string comparisons. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index a6a468974..fc27b13c9 100644 --- a/src/utils.c +++ b/src/utils.c @@ -135,7 +135,7 @@ int set_nonblocking(int fd) int stringFoundInStringArray(const char *const*array, const char *suffix) { while (array && *array) { - if (strcasecmp(*array, suffix) == 0) + if (g_ascii_strcasecmp(*array, suffix) == 0) return 1; array++; }