From 24a13736bda12066f21ce18974ee838244ca4afd Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Sat, 1 Jun 2019 19:31:45 +0200 Subject: [PATCH] [PATCH #63] Fixed infinite loop when setscale is given as a command. --- src/frontend/terminal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/terminal.c b/src/frontend/terminal.c index 84d882545..d29384e12 100644 --- a/src/frontend/terminal.c +++ b/src/frontend/terminal.c @@ -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; } }