xo-procedure2: bugfix: conform getcwd() api: must use return value
This commit is contained in:
parent
9c2a817eb3
commit
80b80881b0
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ namespace xo {
|
|||
xfer_cwd(obj<ARuntimeContext> rcx)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
::getcwd(buf, sizeof(buf));
|
||||
char * cwd = ::getcwd(buf, sizeof(buf));
|
||||
|
||||
return obj<AGCObject,DString>(DString::from_cstr(rcx.allocator(), buf));
|
||||
return obj<AGCObject,DString>(DString::from_cstr(rcx.allocator(), cwd));
|
||||
}
|
||||
|
||||
DPrimitive_gco_0 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue