summaryrefslogtreecommitdiff
path: root/doc/oldfmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/oldfmt.c')
-rw-r--r--doc/oldfmt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/oldfmt.c b/doc/oldfmt.c
index bfd00fe1d..19fbffcc5 100644
--- a/doc/oldfmt.c
+++ b/doc/oldfmt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000,2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -211,9 +211,8 @@ scm_oldfmt (SCM s)
int n;
SCM_ASSERT (SCM_NIMP (s) && SCM_STRINGP (s), s, 1, s_oldfmt);
n = SCM_LENGTH (s);
- return scm_return_first (scm_makfromstr (scm_c_oldfmt (SCM_ROCHARS (s), n),
- n,
- 0),
+ return scm_return_first (scm_mem2string (scm_c_oldfmt (SCM_ROCHARS (s), n),
+ n),
s);
#endif
}