Include the string-ending null for maximum length strings within the string length.

This commit is contained in:
CrazyEttin 2021-05-31 18:48:13 +03:00
parent adefdf3e4c
commit 843c018510
2 changed files with 4 additions and 5 deletions

View File

@ -106,8 +106,5 @@ db "keycode", 0x0
error:
db "Unknown command", 0x0
;buffer:
;times 0x100 db 0
buffer:
times 0x100 db 0
times 0xff db 0

View File

@ -38,7 +38,9 @@ cmp al, 0x8
je .backspace
;Check for input end
cmp bl, [.length]
mov cl, bl
inc cl
cmp cl, [.length]
je .loop
;Check for space