fix terminating NUL on the captured string
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 4 Jun 2021 11:07:18 +0000 (21:07 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Fri, 4 Jun 2021 11:07:18 +0000 (21:07 +1000)
stdio.asm

index 191e09893e2226146f1ee1d0b92a0650d66ec06d..3f69cd3b1c42bcdef0a0dc294902a84b789851d5 100644 (file)
--- a/stdio.asm
+++ b/stdio.asm
@@ -234,9 +234,9 @@ p_double_quote_loop:
        jmp p_double_quote_loop
 p_double_quote_endquote:
 p_double_quote_endstream:
+       mov qword [rdi],0
        lea rdi,[p_pad_DFA]
        add rdi,qword [rsp]
-       stosb
        ;; copy PAD string into new temp object
        inc qword [rsp]
        DOFORTH p_str2temp