Update debug messages for getcwd linux syscall

This commit is contained in:
EnderIce2 2024-08-31 22:15:24 +03:00
parent 021d6fdd6b
commit cac9449457
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -1886,12 +1886,13 @@ static long linux_getcwd(SysFrm *, char *buf, size_t size)
size_t len = strlen(cwd);
if (len >= size)
{
warn("Buffer too small");
warn("Buffer too small (%ld < %ld)", len, size);
return -ERANGE;
}
strncpy(pBuf, cwd, len);
pBuf[len] = '\0';
debug("cwd: \"%s\" with %ld bytes", cwd, len);
return len;
}