From 8b96a46c149b370697856dfb459ab0e62785acc3 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 26 Jul 2008 07:02:12 +0000 Subject: [PATCH] Fix CALL-WITH-TRUNCATED-OUTPUT-STRING: return type plain wrong. --- v7/src/runtime/stringio.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v7/src/runtime/stringio.scm b/v7/src/runtime/stringio.scm index 1d6298fc6..3beb2fdba 100644 --- a/v7/src/runtime/stringio.scm +++ b/v7/src/runtime/stringio.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: stringio.scm,v 14.3 2008/07/26 05:45:36 cph Exp $ +$Id: stringio.scm,v 14.4 2008/07/26 07:02:12 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -393,9 +393,9 @@ USA. (get-output-string port))) (define (call-with-truncated-output-string limit generator) - (call-with-narrow-output-string - (lambda (port) - (call-with-truncated-output-port limit port generator)))) + (let ((port (open-narrow-output-string))) + (let ((truncated? (call-with-truncated-output-port limit port generator))) + (cons truncated? (get-output-string port))))) (define (with-output-to-string thunk) (call-with-narrow-output-string -- 2.25.1