]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fixed reflow bug r0-40
authormsw <msw>
Sat, 10 Apr 1999 03:22:27 +0000 (03:22 +0000)
committermsw <msw>
Sat, 10 Apr 1999 03:22:27 +0000 (03:22 +0000)
newt.spec
windows.c

index 93f5c9106aa5c6bd81d811f92386ac44edbf02b6..1b40a4c6f3056abc6aa6fa6fc51f129398c488f3 100644 (file)
--- 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 <msw@redhat.com>
+- fixed a glibc related bug in reflow that was truncating all text to 1000
+chars
+
 * Fri Apr 09 1999 Matt Wilson <msw@redhat.com>
 - fixed bug that made newt apps crash when you hit <insert> followed by lots
 of keys
index 369e70ac21455403f1ce64f1b4eba38123a4eb92..4629fe610204df76434570556d3634db309c6588 100644 (file)
--- 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) {