From: Ralf Habacker Date: Sat, 6 Feb 2010 23:32:13 +0000 (+0100) Subject: win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive... X-Git-Tag: dbus-1.3.1~120^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ba739fb1a8dcf5bd8deecd5b15aaa4f5ac39b87;p=thirdparty%2Fdbus.git win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive pattern search --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 13e6c6ae1..0ba2a029b 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -3187,7 +3187,7 @@ _dbus_get_install_root(char *prefix, int len) //folder's name happens to end with the *bytes* //"\\bin"... (I.e. the second byte of some Han character and then //the Latin "bin", but that is not likely I think... - if (lastSlash - prefix >= 4 && strncmp(lastSlash - 4, "\\bin", 4) == 0) + if (lastSlash - prefix >= 4 && strnicmp(lastSlash - 4, "\\bin", 4) == 0) lastSlash[-3] = 0; else if (lastSlash - prefix >= 10 && strnicmp(lastSlash - 10, "\\bin\\debug", 10) == 0) lastSlash[-9] = 0;