From d1094fdd1b8c97b957591ef2902587c654f4e18c Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 21 Aug 2009 15:13:21 -0700 Subject: compat/snprintf.c: clarify SNPRINTF_SIZE_CORR Signed-off-by: Junio C Hamano diff --git a/compat/snprintf.c b/compat/snprintf.c index 6c0fb05..4d07087 100644 --- a/compat/snprintf.c +++ b/compat/snprintf.c @@ -3,7 +3,8 @@ /* * The size parameter specifies the available space, i.e. includes * the trailing NUL byte; but Windows's vsnprintf expects the - * number of characters to write without the trailing NUL. + * number of characters to write, and does not necessarily write the + * trailing NUL. */ #ifndef SNPRINTF_SIZE_CORR #if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 4 -- cgit v0.10.2-6-g49f6