]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Don't define {v}snprintf() as _{v}snprintf(); they're not the same.
authorGuy Harris <[email protected]>
Mon, 29 Jan 2018 21:55:08 +0000 (13:55 -0800)
committerGuy Harris <[email protected]>
Mon, 29 Jan 2018 21:55:08 +0000 (13:55 -0800)
They don't behave exactly like ISO C {v}snprintf(), so, on Windows, we
have wrappers around _{v}snprintf() that behave the way {v}snprintf()
are supposed to work.

netdissect-stdinc.h

index 84f726a47bf6da8abe12d97d43dbd8a7554d66a8..5437f32ef6d17d7fbc26d721b4a8b83e5bdc3e8a 100644 (file)
@@ -260,8 +260,6 @@ typedef char* caddr_t;
 #endif /* caddr_t */
 
 #define MAXHOSTNAMELEN 64
-#define snprintf _snprintf
-#define vsnprintf _vsnprintf
 
 #else /* _WIN32 */