Define SNPRINTF_SIZE_CORR=1 for Microsoft Visual C++
commitc124c9679255ad759d3441c5fd946a249fd39be3
authorFrank Li <lznuaa@gmail.com>
Sun, 16 Aug 2009 05:53:30 +0000 (16 13:53 +0800)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 18 Oct 2009 15:47:40 +0000 (18 17:47 +0200)
tree903eff70553f0179cbe20541084f148522609449
parenta2546af6686b7f55ce21660821dba2bde641efcf
Define SNPRINTF_SIZE_CORR=1 for Microsoft Visual C++

The Microsoft C runtime's vsnprintf function does not add NUL at
the end of the buffer.

Further, Microsoft deprecated vsnprintf in favor of _vsnprintf, so
add a #define to that end.

Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/snprintf.c