summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-06 04:58:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-06 04:58:47 +0000
commit9405dc2ce83d7d22ce72a43cab6844afa36d4c84 (patch)
treeda42dc9bf2980d11879856bc11facf052517dd0c /src
parentea4be04a07e1a542b52651f8ec5e0ea2cc38db30 (diff)
downloadirssi-9405dc2ce83d7d22ce72a43cab6844afa36d4c84.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/term-terminfo.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}