From: msw Date: Sat, 10 Apr 1999 03:22:27 +0000 (+0000) Subject: fixed reflow bug X-Git-Tag: r0-40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f22cea2f1f82720ff01d0adeb3dbf8c1beb00dd5;p=thirdparty%2Fnewt.git fixed reflow bug --- diff --git a/newt.spec b/newt.spec index 93f5c91..1b40a4c 100644 --- a/newt.spec +++ b/newt.spec @@ -2,7 +2,7 @@ Summary: A development library for text mode user interfaces. Name: newt %define version 0.40 Version: %{version} -Release: 8 +Release: 9 Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz @@ -55,6 +55,10 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %changelog +* Fri Apr 9 1999 Matt Wilson +- fixed a glibc related bug in reflow that was truncating all text to 1000 +chars + * Fri Apr 09 1999 Matt Wilson - fixed bug that made newt apps crash when you hit followed by lots of keys diff --git a/windows.c b/windows.c index 369e70a..4629fe6 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 || i == -1); + } while (i >= size || i == -1); flowedText = newtReflowText(buf, 35, 5, 5, &width, &height); if (height > 6) {