From 25fe238af585ae5df3d563e6aa08afd1062c9a07 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 30 Mar 2017 21:30:55 -0700 Subject: [PATCH] Fix bug: string output port must copy input strings. --- src/runtime/stringio.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/stringio.scm b/src/runtime/stringio.scm index 98afab45d..27d00f90d 100644 --- a/src/runtime/stringio.scm +++ b/src/runtime/stringio.scm @@ -208,7 +208,7 @@ USA. (define (string-out/write-substring port string start end) (let ((os (textual-port-state port)) (n (fix:- end start))) - ((ostate-builder os) (string-slice string start end)) + ((ostate-builder os) (string-copy string start end)) (update-column-for-substring! os string start end) n)) -- 2.25.1