fix getcwd

db4
Doug Coleman 2008-02-05 23:14:10 -06:00
parent 4439e394cc
commit 537d945660
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ alien ;
IN: io.unix.files
M: unix-io cwd
MAXPATHLEN dup <byte-array> swap getcwd
[ alien>char-string ] [ (io-error) ] if* ;
MAXPATHLEN dup <byte-array> swap
getcwd [ (io-error) ] unless* ;
M: unix-io cd
chdir io-error ;