Skip to content

Commit d1094fd

Browse files
committed
compat/snprintf.c: clarify SNPRINTF_SIZE_CORR
Signed-off-by: Junio C Hamano <[email protected]>
1 parent f00ecbe commit d1094fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/snprintf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
/*
44
* The size parameter specifies the available space, i.e. includes
55
* 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.
78
*/
89
#ifndef SNPRINTF_SIZE_CORR
910
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 4

0 commit comments

Comments
 (0)