mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-23 13:00:34 +02:00
(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.
This commit is contained in:
parent
c91207a1b2
commit
5486021ac3
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ SCM_DEFINE (scm_call_with_output_string, "call-with-output-string", 1, 0, 0,
|
||||||
FUNC_NAME);
|
FUNC_NAME);
|
||||||
scm_call_1 (proc, p);
|
scm_call_1 (proc, p);
|
||||||
|
|
||||||
return scm_strport_to_string (p);
|
return scm_get_output_string (p);
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#undef FUNC_NAME
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue