]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive...
authorRalf Habacker <ralf.habacker@freenet.de>
Sat, 6 Feb 2010 23:32:13 +0000 (00:32 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Sat, 6 Feb 2010 23:32:13 +0000 (00:32 +0100)
dbus/dbus-sysdeps-win.c

index 13e6c6ae10ca504c4409a931a7978ddd72ec8a0a..0ba2a029bc7329139edd69860cec8682430b37cf 100644 (file)
@@ -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;