From 9405dc2ce83d7d22ce72a43cab6844afa36d4c84 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 6 May 2002 04:58:47 +0000 Subject: fixed buffer overflow - happened at least when hitting ^A after writing enough text to input line. usually didn't crash.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2755 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-terminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 54a02a6b..ddb00441 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -376,7 +376,7 @@ static void term_printed_text(int count) vcx += count; while (vcx >= term_width) { vcx -= term_width; - if (vcy < term_height) vcy++; + if (vcy < term_height-1) vcy++; if (vcx > 0) term_lines_empty[vcy] = FALSE; } } -- cgit v1.2.3