fix: correct linux directory size calculation by excluding null terminator

This commit is contained in:
MechSlayer 2025-09-11 06:20:40 +02:00
parent 35c88d99e3
commit c51434d3ae

View file

@ -146,7 +146,7 @@ int drang_fs_get_cwd(char *buffer, size_t size, size_t *out_size)
}
free(dir);
if (out_size) {
*out_size = dir_length + 1;
*out_size = dir_length;
}
DRANG_RETURN();
}