X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..b2cc1a00b2cc87b28ff4d9601545cbb06529d847:/resize.c?ds=sidebyside diff --git a/resize.c b/resize.c index 79b01ac..f9c26b4 100644 --- a/resize.c +++ b/resize.c @@ -59,18 +59,12 @@ void mutt_resize_screen (void) } if (SLtt_Screen_Rows <= 0) { - if ((cp = getenv ("LINES")) != NULL) - { - SLtt_Screen_Rows = atoi (cp); - } - else + if ((cp = getenv ("LINES")) != NULL && mutt_atoi (cp, &SLtt_Screen_Rows) < 0) SLtt_Screen_Rows = 24; } if (SLtt_Screen_Cols <= 0) { - if ((cp = getenv ("COLUMNS")) != NULL) - SLtt_Screen_Cols = atoi (cp); - else + if ((cp = getenv ("COLUMNS")) != NULL && mutt_atoi (cp, &SLtt_Screen_Cols) < 0) SLtt_Screen_Cols = 80; } #ifdef USE_SLANG_CURSES