aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-25 18:40:02 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-25 18:40:02 -0400
commit5ad74801b74a69b2cb8dbe0c1a0e0b9a5d251eb2 (patch)
tree500eb8524ecc106e46ce1ef4d2a0e5bf15406ff1 /src/edbox.c
parent43aa98337bca5c7408417a60787f792d8fe700a0 (diff)
downloadfujinet-chat-5ad74801b74a69b2cb8dbe0c1a0e0b9a5d251eb2.tar.gz
Fix Start+E display (only 5 lines were shown, now 6); clear an extra byte in edbox_clear() in case page 6 wasn't empty at startup.
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edbox.c b/src/edbox.c
index dc1a8e2..9c042e7 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -28,7 +28,7 @@ static void show_cursor(void) {
}
void edbox_clear(void) {
- memset(edit_box, 0, EDBOX_SIZE);
+ memset(edit_box, 0, EDBOX_SIZE + 1);
edbox_pos = edbox_len = 0;
show_cursor(); // not needed? seems it is..
}