~ubuntu-dev/ubuntu/lucid/mutt/lucid-201002110857

« back to all changes in this revision

Viewing changes to resize.c

  • Committer: Bazaar Package Importer
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2009-06-17 17:17:28 UTC
  • mfrom: (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090617171728-61dkl7w5fgn7ybdq
Tags: upstream-1.5.20
Import upstream version 1.5.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  }
60
60
  if (SLtt_Screen_Rows <= 0)
61
61
  {
62
 
    if ((cp = getenv ("LINES")) != NULL)
63
 
    {
64
 
      SLtt_Screen_Rows = atoi (cp);
65
 
    }
66
 
    else
 
62
    if ((cp = getenv ("LINES")) != NULL && mutt_atoi (cp, &SLtt_Screen_Rows) < 0)
67
63
      SLtt_Screen_Rows = 24;
68
64
  }
69
65
  if (SLtt_Screen_Cols <= 0)
70
66
  {
71
 
    if ((cp = getenv ("COLUMNS")) != NULL)
72
 
      SLtt_Screen_Cols = atoi (cp);
73
 
    else
 
67
    if ((cp = getenv ("COLUMNS")) != NULL && mutt_atoi (cp, &SLtt_Screen_Cols) < 0)
74
68
      SLtt_Screen_Cols = 80;
75
69
  }
76
70
#ifdef USE_SLANG_CURSES