@matheusbsbs / matheus-bagliano / commits / d1094fdd1b
Fork 0

compat/snprintf.c: clarify SNPRINTF_SIZE_CORR

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Aug 21, 2009 at 15:13 UTC d1094fdd1b8c97b957591ef2902587c654f4e18c
1 file changed +2 -1
compat/snprintf.c
+2 -1
@@ -3,7 +3,8 @@
3 /*
4 * The size parameter specifies the available space, i.e. includes
5 * the trailing NUL byte; but Windows's vsnprintf expects the
6 - * number of characters to write without the trailing NUL.
6 + * number of characters to write, and does not necessarily write the
7 + * trailing NUL.
8 */
9 #ifndef SNPRINTF_SIZE_CORR
10 #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 4