diff options
-rw-r--r-- | demos/3rdparty/doom/i_system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/3rdparty/doom/i_system.c b/demos/3rdparty/doom/i_system.c index 2c6fde95..094144f6 100644 --- a/demos/3rdparty/doom/i_system.c +++ b/demos/3rdparty/doom/i_system.c @@ -270,6 +270,7 @@ void I_sprintf(char *buf, const char *fmt, ...) { c = *fmt++; if (c == 0) { va_end(ap); + *buf = 0; return; } if (c != '%') { |