Fix fencepost error thinko.
authorChris Hanson <org/chris-hanson/cph>
Sat, 17 May 2014 05:09:26 +0000 (22:09 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sat, 17 May 2014 05:09:26 +0000 (22:09 -0700)
src/runtime/string.scm

index 04b2d5f9e2a8fbdc3b33b9e902778b2f913ff709..e89ea748b41e805e287cfeac468d984a0f060f36 100644 (file)
@@ -180,8 +180,6 @@ USA.
                 (begin
                   (string-set! string end #\nul)
                   (set-string-length! string end)))
-            (string-set! string end #\nul)
-            (set-string-length! string end)
             (let ((new-gc-length (fix:+ 2 (fix:lsh end %octets->words-shift)))
                   (old-gc-length (system-vector-length string)))
               (let ((delta (fix:- old-gc-length new-gc-length)))