summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/getcwd.c')
-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 442b9fdcd..c4a29b8d5 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", buff);
+ if (getwd(buff) == 0) uerror("getcwd", alloc_string(buff));
return copy_string(buff);
}