projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0c9d3
)
tools/dbus-launch-win.c: strrchr -> _mbsrchr (cherry picked from commit b8b9fc300242f...
author
Tor Lillqvist
<tml@iki.fi>
Wed, 22 Apr 2009 07:29:45 +0000
(09:29 +0200)
committer
Ralf Habacker
<ralf.habacker@freenet.de>
Mon, 30 Nov 2009 11:00:17 +0000
(12:00 +0100)
tools/dbus-launch-win.c
patch
|
blob
|
history
diff --git
a/tools/dbus-launch-win.c
b/tools/dbus-launch-win.c
index 9a792c9b93c49739d1275aa30582424aa9c580bd..3cf26e55437b4586cf0b20777ba3372d1d79546f 100644
(file)
--- 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);