Fix off-by-one error in the vsnprintf wrapper.
commite88aa8cbe816526bb0a7d37eaf2f5eb40ff36ae1
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 23 Oct 2007 14:34:09 +0000 (23 16:34 +0200)
committerJohannes Sixt <johannes.sixt@telecom.at>
Tue, 23 Oct 2007 14:34:09 +0000 (23 16:34 +0200)
tree332a82563994aa0b843ecc8c19243bd89618e18a
parent2a7eb0184ecda54651a8dd38b50b9527854d74aa
Fix off-by-one error in the vsnprintf wrapper.

Windows's vsnprintf() receives the number of characters to write, which
does not include the trailing NUL byte. But our vsnprintf() users pass
the available space, including the trailing NUL.
compat/mingw.c