medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit dba9c64c1416a33cc367425bef0d173db3f209e3
parent d2bf993895b959a4948744dc2fb7a8b150303efc
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Mar 11 16:16:34 +0200

Fix ggformat on Windows

Diffstat:
ggformat.cc | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/ggformat.cc b/ggformat.cc @@ -7,9 +7,13 @@ #include "platform_io.h" struct ShortString { - char buf[ 16 ] = ""; + char buf[ 16 ]; size_t length = 0; + ShortString() { + buf[ 0 ] = '\0'; + } + void operator+=( int x ) { char num[ 16 ]; snprintf( num, sizeof( num ), "%d", x );