--- /dev/null
+--- newt-0.50.34/form.c.orig Sat Mar 6 00:27:57 1999
++++ newt-0.50.34/form.c Tue Dec 14 12:18:16 1999
+@@ -304,6 +304,7 @@
+ sock_name = 0;
+ } /*if*/
+ gpm_flag=0;
++ gpm_fd=-1;
+ return -1;
+ }
+
--- /dev/null
+--- newt-0.50.34/Makefile.in.orig Thu Dec 27 11:32:11 2001
++++ newt-0.50.34/Makefile.in Thu Dec 27 11:33:23 2001
+@@ -110,7 +110,8 @@
+ install-sh: sharedlib whiptcl.so _snackmodule.so
+ [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
+ install -s -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
+- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/libnewt.so
++ ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
++ ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
+ install -s -m 755 whiptcl.so $(instroot)/$(libdir)
+ [ -d $(instroot)/$(pythonbindir) ] || install -m 755 -d $(instroot)/$(pythonbindir)
+ install -s -m 755 _snackmodule.so $(instroot)/$(pythonbindir)
--- /dev/null
+diff -Nur newt-0.50.5.ORIG/textbox.c newt-0.50.5/textbox.c
+--- newt-0.50.5.ORIG/textbox.c Sun Oct 22 15:17:17 2000
++++ newt-0.50.5/textbox.c Sun Oct 22 15:19:39 2000
+@@ -332,7 +332,12 @@
+
+ for (i = 0; (i + tb->topLine) < tb->numLines && i < c->height; i++) {
+ newtGotorc(c->top + i, c->left);
+- SLsmg_write_string(tb->lines[i + tb->topLine]);
++ SLsmg_write_nstring(tb->lines[i + tb->topLine], c->width);
++ }
++
++ for ( ; i < c->height; i++) {
++ newtGotorc (c->top + i, c->left);
++ SLsmg_write_nstring (" ", c->width);
+ }
+ }
+