[PATCH #63] Fixed infinite loop when setscale is given as a command.

This commit is contained in:
Jim Monte 2019-06-01 19:31:45 +02:00 committed by Holger Vogt
parent 031b722640
commit 24a13736bd
1 changed files with 2 additions and 2 deletions

View File

@ -305,14 +305,14 @@ tcap_init(void)
if ((s = getenv("COLS")) != NULL)
xsize = atoi(s);
if (xsize <= 0)
xsize = 0;
xsize = DEF_SCRWIDTH;
}
if (!ysize) {
if ((s = getenv("LINES")) != NULL)
ysize = atoi(s);
if (ysize <= 0)
ysize = 0;
ysize = DEF_SCRHEIGHT;
}
}