summaryrefslogtreecommitdiff
path: root/compat/snprintf.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-08-21 22:13:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-22 01:48:01 (GMT)
commitd1094fdd1b8c97b957591ef2902587c654f4e18c (patch)
treecf9f8440dc53f4a25fad93437736ce45f3857c31 /compat/snprintf.c
parentf00ecbe42b82f3c8e6a170074f2299487026e400 (diff)
downloadgit-d1094fdd1b8c97b957591ef2902587c654f4e18c.zip
git-d1094fdd1b8c97b957591ef2902587c654f4e18c.tar.gz
git-d1094fdd1b8c97b957591ef2902587c654f4e18c.tar.bz2
compat/snprintf.c: clarify SNPRINTF_SIZE_CORR
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/snprintf.c')
-rw-r--r--compat/snprintf.c3
1 files changed, 2 insertions, 1 deletions
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