summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix')
-rw-r--r--otherlibs/unix/getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/getcwd.c b/otherlibs/unix/getcwd.c
index c4a29b8d5..6a961d76d 100644
--- a/otherlibs/unix/getcwd.c
+++ b/otherlibs/unix/getcwd.c
@@ -34,7 +34,7 @@ value unix_getcwd() /* ML */
value unix_getcwd()
{
char buff[MAXPATHLEN];
- if (getwd(buff) == 0) uerror("getcwd", alloc_string(buff));
+ if (getwd(buff) == 0) uerror("getcwd", copy_string(buff));
return copy_string(buff);
}