summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2009-04-22 09:29:45 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2009-11-30 12:00:17 +0100
commit14aca8b73b9df382da66eddfea1e7cc505013e9d (patch)
tree58b0da2d4ff431ef5417c638f4e8a3a1210e2fc3 /tools
parent2d0c9d37de01c97df806e9635ee55746e8dfe0e9 (diff)
downloaddbus-14aca8b73b9df382da66eddfea1e7cc505013e9d.tar.gz
tools/dbus-launch-win.c: strrchr -> _mbsrchr (cherry picked from commit b8b9fc300242ff25071df4166173baae7d2b4f0f)
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch-win.c3
1 files changed, 2 insertions, 1 deletions
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 <windows.h>
#include <stdio.h>
#include <string.h>
+#include <mbstring.h>
#include <assert.h>
#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);