summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2014-05-22 09:03:36 +0000
committert00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7>2014-05-22 09:03:36 +0000
commit08245541310fc8c27b1cacc9924e8b6f6ab6c1f8 (patch)
treea6d9ba92bf12224cdceb66b84b8d5a0a6757dd8a
parente074d600abe59f030e890771bb80470b9147022a (diff)
downloadusrsctplib-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-xnetinet/sctp_os_userspace.h2
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()