From: Guy Harris Date: Mon, 29 Jan 2018 21:55:08 +0000 (-0800) Subject: Don't define {v}snprintf() as _{v}snprintf(); they're not the same. X-Git-Tag: tcpdump-4.99-bp~1316 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/1e120597d2cb5864d52ca99ca6e167f2454c3153 Don't define {v}snprintf() as _{v}snprintf(); they're not the same. 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. --- diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index 84f726a4..5437f32e 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -260,8 +260,6 @@ typedef char* caddr_t; #endif /* caddr_t */ #define MAXHOSTNAMELEN 64 -#define snprintf _snprintf -#define vsnprintf _vsnprintf #else /* _WIN32 */