1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-19 09:28:25 +00:00

Fix Atari buffer overrun on keyboard EOF

This commit is contained in:
John Murkerson
2025-05-14 14:37:51 -04:00
parent 84094ae2b3
commit 9cdba1b6d8
+2 -1
View File
@@ -147,6 +147,7 @@ icbll_copy:
sta dataptr+1
lda ICBLL,x
sta copylen
beq copied ; length = 0 if EOF
pha ; remember for return value
ldy #0
ldx index
@@ -159,7 +160,7 @@ copy: lda linebuf,x
bne copy
pla ; length
pha ; save length to return at okdone
copied: pha ; save length to return at okdone
clc
adc index