summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-11-29 13:38:09 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-11-29 13:38:09 +0000
commit49d5e3a750c7e39636a6b1ce1851cfd62f23ce2e (patch)
tree82e22c874a1c19f53c3f713546ea7c2114255fbd /otherlibs/unix
parent18e825ee64661281692175b6393144c851e38103 (diff)
Rectification de l'appel de unix_error.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@494 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
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 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);
}