From 9cdba1b6d850c50aee2cb559ccffa3cec3910752 Mon Sep 17 00:00:00 2001 From: John Murkerson Date: Wed, 14 May 2025 14:37:51 -0400 Subject: [PATCH] Fix Atari buffer overrun on keyboard EOF --- libsrc/atari/read.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/atari/read.s b/libsrc/atari/read.s index 228ca9ee2..b50bd2856 100644 --- a/libsrc/atari/read.s +++ b/libsrc/atari/read.s @@ -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