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