commit 1c8da91de1b7218c181745c64f725ef0b4f954a5 parent 23fc51d7b9948ed05ec4e7df670bbe3e7092253e Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Apr 2 23:53:54 +0300 Use _snprint since we are checking for Windows anyway Diffstat:
ggformat.cc | | | 4 | ++-- |
diff --git a/ggformat.cc b/ggformat.cc @@ -36,8 +36,8 @@ static void format_helper( FormatBuffer * fb, const ShortString & fmt, const T & } #if PLATFORM_WINDOWS - int printed = snprintf( NULL, 0, fmt.buf, x ); - snprintf( dst, len, fmt.buf, x ); + int printed = _snprintf( NULL, 0, fmt.buf, x ); + _snprintf( dst, len, fmt.buf, x ); #else int printed = snprintf( dst, len, fmt.buf, x ); #endif