From 9ad374836cc923e131afe84403e45d2bc94da8fc Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Dec 2005 23:40:07 +0000 Subject: [PATCH] *** empty log message *** --- src/init.C | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/init.C b/src/init.C index 1e7f7bd6..90d6a3ea 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; -- 2.34.1