fix a braino for vsnprintf return code handling

This commit is contained in:
Bill Currie 2002-02-12 20:39:11 +00:00
parent b4000200e3
commit befc4113b8

View file

@ -386,7 +386,7 @@ C_Print (const char *fmt, va_list args)
size = vsnprintf (buffer, buffer_size, fmt, args); size = vsnprintf (buffer, buffer_size, fmt, args);
while (size < 0 || size + 1 > buffer_size) { while (size < 0 || size + 1 > buffer_size) {
if (size >= 0) if (size > 0)
buffer_size = (size + 1 + 1024) % 1024; // 1k multiples buffer_size = (size + 1 + 1024) % 1024; // 1k multiples
else else
buffer_size += 1024; buffer_size += 1024;