xo-procedure2: bugfix: conform getcwd() api: must use return value

This commit is contained in:
Roland Conybeare 2026-03-17 12:27:31 -04:00
commit 80b80881b0

View file

@ -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 *