mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a braino for vsnprintf return code handling
This commit is contained in:
parent
b4000200e3
commit
befc4113b8
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ C_Print (const char *fmt, va_list args)
|
|||
|
||||
size = vsnprintf (buffer, buffer_size, fmt, args);
|
||||
while (size < 0 || size + 1 > buffer_size) {
|
||||
if (size >= 0)
|
||||
if (size > 0)
|
||||
buffer_size = (size + 1 + 1024) % 1024; // 1k multiples
|
||||
else
|
||||
buffer_size += 1024;
|
||||
|
|
Loading…
Reference in a new issue