Follow up to previous commit.

modified:   src/nms.c
This commit is contained in:
Brian Barto 2016-04-18 14:35:25 -04:00
parent 1b6ba0bf7f
commit 385cacab05

View File

@ -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);
}