From 3b12ce121ea35916272eb8d6eebe836574dd464e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 3 Sep 1996 22:00:27 +0000 Subject: [PATCH] (term_init): Avoid type-mismatch calling get_frame_size. --- src/term.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/term.c b/src/term.c index a9533ece45a..5515c555be3 100644 --- a/src/term.c +++ b/src/term.c @@ -1585,8 +1585,13 @@ to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well.\n", term_get_fkeys (address); /* Get frame size from system, or else from termcap. */ - get_frame_size (&FRAME_WIDTH (selected_frame), - &FRAME_HEIGHT (selected_frame)); + { + int height, width; + get_frame_size (&width, &height); + FRAME_WIDTH (selected_frame) = width; + FRAME_HEIGHT (selected_frame) = height; + } + if (FRAME_WIDTH (selected_frame) <= 0) FRAME_WIDTH (selected_frame) = tgetnum ("co"); if (FRAME_HEIGHT (selected_frame) <= 0) -- 2.39.2