fix: correct linux directory size calculation by excluding null terminator
This commit is contained in:
parent
35c88d99e3
commit
c51434d3ae
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ int drang_fs_get_cwd(char *buffer, size_t size, size_t *out_size)
|
||||||
}
|
}
|
||||||
free(dir);
|
free(dir);
|
||||||
if (out_size) {
|
if (out_size) {
|
||||||
*out_size = dir_length + 1;
|
*out_size = dir_length;
|
||||||
}
|
}
|
||||||
DRANG_RETURN();
|
DRANG_RETURN();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue