Skip to content

Commit

Permalink
compat/snprintf.c: clarify SNPRINTF_SIZE_CORR
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 22, 2009
1 parent f00ecbe commit d1094fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compat/snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1094fd

Please sign in to comment.