From 30b42287237e6cd164c3a6bd399116f0e6e0ec07 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 3 Jul 2010 15:15:19 +0000 Subject: (svn r20060) -Fix (r20055): strnicmp() does not exist on all platforms. --- src/hotkeys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp index 6d463794f..6856fc10e 100644 --- a/src/hotkeys.cpp +++ b/src/hotkeys.cpp @@ -67,7 +67,7 @@ static uint16 ParseCode(const char *start, const char *end) return *start; } for (uint i = 0; i < lengthof(_keycode_to_name); i++) { - if (strnicmp(start, _keycode_to_name[i].name, end - start) == 0) { + if (strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) { return _keycode_to_name[i].keycode; } } -- cgit v1.2.3-54-g00ecf