X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..e0765f8ab8243c097213733be0d4be2a31448b89:/resize.c 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