aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--font_dl.asm3
-rw-r--r--src/edbox.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/font_dl.asm b/font_dl.asm
index 3cd43e5..a48699a 100644
--- a/font_dl.asm
+++ b/font_dl.asm
@@ -83,7 +83,8 @@ dl_status_lms
.byte $70, $70, $70, $70, $70, $70, $70, $70
.byte $42
.word $0600 ; edit_box from addrs.c
- .byte $02, $02, $02, $02
+ .byte $02, $02, $02, $02, $02
+ .byte $00
.byte $42
.word $a798 ; status_box from addrs.c
.byte $06 ; GR.1
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..
}