From 14aca8b73b9df382da66eddfea1e7cc505013e9d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 22 Apr 2009 09:29:45 +0200 Subject: [PATCH] tools/dbus-launch-win.c: strrchr -> _mbsrchr (cherry picked from commit b8b9fc300242ff25071df4166173baae7d2b4f0f) --- tools/dbus-launch-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dbus-launch-win.c b/tools/dbus-launch-win.c index 9a792c9b..3cf26e55 100644 --- a/tools/dbus-launch-win.c +++ b/tools/dbus-launch-win.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #if defined __MINGW32__ || (defined _MSC_VER && _MSC_VER <= 1310) @@ -74,7 +75,7 @@ int main(int argc,char **argv) #else daemon_name = "dbus-daemon.exe"; #endif - if ((p = strrchr(dbusDaemonPath,'\\'))) + if ((p = _mbsrchr (dbusDaemonPath, '\\'))) { *(p+1)= '\0'; strcat_s(dbusDaemonPath,sizeof(dbusDaemonPath),daemon_name); -- 2.34.1