Follow up to previous commit.
modified: src/nms.c
This commit is contained in:
parent
1b6ba0bf7f
commit
385cacab05
@ -58,7 +58,7 @@ void nmsprintf(const char *format, ...) {
|
||||
|
||||
va_list argp;
|
||||
va_start(argp, format);
|
||||
while (vsnprintf(nmsprintBuffer, bufferSize, format, argp) >= strlen(nmsprintBuffer) + 1) {
|
||||
while (vsnprintf(nmsprintBuffer, bufferSize, format, argp) >= bufferSize) {
|
||||
bufferSize += bufferIncrementSize;
|
||||
nmsprintBuffer = realloc(nmsprintBuffer, bufferSize);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user