From bdd2ff1c24fc03d253ea5fcb9764eba2a87ab26a Mon Sep 17 00:00:00 2001
From: Chris Hanson <org/chris-hanson/cph>
Date: Sat, 6 May 2017 15:31:27 -0700
Subject: [PATCH] Change parser-buffer to return immutable strings.

---
 src/runtime/parser-buffer.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime/parser-buffer.scm b/src/runtime/parser-buffer.scm
index 23502368b..6566fe473 100644
--- a/src/runtime/parser-buffer.scm
+++ b/src/runtime/parser-buffer.scm
@@ -110,7 +110,7 @@ USA.
   (set-parser-buffer-line! buffer (parser-buffer-pointer-line p)))
 
 (define (get-parser-buffer-tail buffer p)
-  (call-with-parser-buffer-tail buffer p string-copy))
+  (call-with-parser-buffer-tail buffer p substring))
 
 (define (call-with-parser-buffer-tail buffer p procedure)
   ;; P must be a buffer pointer previously returned by
-- 
2.25.1