diff options
author | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2014-05-22 09:03:36 +0000 |
---|---|---|
committer | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2014-05-22 09:03:36 +0000 |
commit | 08245541310fc8c27b1cacc9924e8b6f6ab6c1f8 (patch) | |
tree | a6d9ba92bf12224cdceb66b84b8d5a0a6757dd8a | |
parent | e074d600abe59f030e890771bb80470b9147022a (diff) | |
download | usrsctplib-08245541310fc8c27b1cacc9924e8b6f6ab6c1f8.tar.gz |
Fix the snprintf replacement macro used on Windows.
Thanks to Lucas Dixon for reporting the issue and testing
the fix.
git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk/KERN/usrsctp/usrsctplib@8875 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
-rwxr-xr-x | netinet/sctp_os_userspace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netinet/sctp_os_userspace.h b/netinet/sctp_os_userspace.h index bf501d0..f863295 100755 --- a/netinet/sctp_os_userspace.h +++ b/netinet/sctp_os_userspace.h @@ -224,7 +224,7 @@ int win_if_nametoindex(const char *); #define bzero(buf, len) memset(buf, 0, len) #define bcopy(srcKey, dstKey, len) memcpy(dstKey, srcKey, len) -#define snprintf(data, size, format, name) _snprintf_s(data, size, _TRUNCATE, format, name) +#define snprintf(data, size, format, ...) _snprintf_s(data, size, _TRUNCATE, format, __VA_ARGS__) #define inline __inline #define __inline__ __inline #define random() rand() |