File w3m-0.4.1-textarea-segfault.dif of Package w3m

Index: w3m-0.5.3/terms.c
===================================================================
--- w3m-0.5.3.orig/terms.c
+++ w3m-0.5.3/terms.c
@@ -634,7 +634,8 @@ reset_tty(void)
     writestr(T_se);		/* reset terminal */
     flush_tty();
     TerminalSet(tty, &d_ioval);
-    close_tty();
+    if (tty != 2)
+        close_tty();
 }
 
 static MySignalHandler