mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-08 20:32:27 +02:00
(s_scm_call_with_output_string): scm_get_output_string
rather than scm_strport_to_string, so as to guard against the port having been closed by the called procedure. Reported by Nic Ferrier.
This commit is contained in:
parent
930d3b37a8
commit
184b85a394
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ SCM_DEFINE (scm_call_with_output_string, "call-with-output-string", 1, 0, 0,
|
|||
FUNC_NAME);
|
||||
scm_call_1 (proc, p);
|
||||
|
||||
return scm_strport_to_string (p);
|
||||
return scm_get_output_string (p);
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue