mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
On Windows, if the resulting string fits exactly in the provided buffer, but not the terminating NUL, then the return value of the system's vsnprintf is the number of characters written. But since we had reserved an extra byte anyway, we only need to make sure that the result is NUL terminated. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>