From 6e545bb556c7d9309350afce9e8b4165ede5d88e Mon Sep 17 00:00:00 2001 From: ewt Date: Mon, 17 Aug 1998 15:38:44 +0000 Subject: [PATCH] check for vsnprintf() returning -1 --- windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows.c b/windows.c index e9d607d..369e70a 100644 --- a/windows.c +++ b/windows.c @@ -23,7 +23,7 @@ static void * newtvwindow(char * title, char * button1, char * button2, if (buf) free(buf); buf = malloc(size); i = vsnprintf(buf, size, message, args); - } while (i == size); + } while (i == size || i == -1); flowedText = newtReflowText(buf, 35, 5, 5, &width, &height); if (height > 6) { -- 2.39.2