repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 0170bae0655f6e76e2662124a9edc2cd8c030ea2:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 0170bae0655f6e76e2662124a9edc2cd8c030ea2
Author: Marc Lehmann 
Date:   Wed Dec 21 23:40:07 2005 +0000

    *** empty log message ***

diff --git a/src/init.C b/src/init.C
index 1e7f7bd68b092263dec7ce53fb9b856dcda98bdb..
index ..90d6a3eac65c708701c0b4d88584a149ddf2c847 100644
--- a/src/init.C
+++ b/src/init.C
@@ -373,7 +373,7 @@ rxvt_term::init_resources (int argc, const char *const *argv)
     }

   if (rs[Rs_saveLines] && (i = atoi (rs[Rs_saveLines])) >= 0)
-    saveLines = min (i, std::numeric_limits::max ());
+    saveLines = min (i, MAX_SAVELINES);

 #if ENABLE_FRILLS
   if (rs[Rs_int_bwidth] && (i = atoi (rs[Rs_int_bwidth])) >= 0)
@@ -1199,10 +1199,16 @@ rxvt_get_ttymode (ttymode_t *tio, int erase)
    */
   if (GET_TERMIOS (STDIN_FILENO, tio) < 0)
     {
-      /* return error - use system defaults */
+      // return error - use system defaults,
+      // where possible, and zero elsewhere
+      memset (tio, 0, sizeof (ttymode_t));
+
       tio->c_cc[VINTR] = CINTR;
       tio->c_cc[VQUIT] = CQUIT;
       tio->c_cc[VERASE] = CERASE;
+#ifdef VERASE2
+      tio->c_cc[VERASE2] = CERASE2;
+#endif
       tio->c_cc[VKILL] = CKILL;
       tio->c_cc[VSTART] = CSTART;
       tio->c_cc[VSTOP] = CSTOP;

-----END OF PAGE-----