diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-06-19 20:12:11 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-06-19 20:12:11 +0000 |
commit | 3410f135ae3d50d2244f8c3acdb62925e9726ab5 (patch) | |
tree | bb9204f641f3c909b54164bb7ffa067e2ce8abb7 /tools/dbus-launch-win.c | |
parent | a1a285b10d92708515977d8e9e5f07cb920e92c6 (diff) |
* dbus/dbus-sysdeps-util-win.c, tools/dbus-launch-win.c: msvc7.1 fixes by Jaroslaw Staniek tested with mingw
Diffstat (limited to 'tools/dbus-launch-win.c')
-rw-r--r-- | tools/dbus-launch-win.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dbus-launch-win.c b/tools/dbus-launch-win.c index 972ad278..17f2310a 100644 --- a/tools/dbus-launch-win.c +++ b/tools/dbus-launch-win.c @@ -25,19 +25,19 @@ #include <string.h> #include <assert.h> -#ifdef __MINGW32__ +#if defined __MINGW32__ || (defined _MSC_VER && _MSC_VER <= 1310) /* save string functions version */ #define errno_t int -errno_t strcat_s(char *dest, int size, char *src) +errno_t strcat_s(char *dest, size_t size, char *src) { assert(strlen(dest) + strlen(src) +1 <= size); strcat(dest,src); return 0; } -errno_t strcpy_s(char *dest, int size, char *src) +errno_t strcpy_s(char *dest, size_t size, char *src) { assert(strlen(src) +1 <= size); strcpy(dest,src); |