mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix typos
This commit is contained in:
+2
-2
@@ -79,14 +79,14 @@ String get_working_directory(gbAllocator allocator) {
|
|||||||
TEMPORARY_ALLOCATOR_GUARD();
|
TEMPORARY_ALLOCATOR_GUARD();
|
||||||
|
|
||||||
auto buf = array_make<char>(temporary_allocator());
|
auto buf = array_make<char>(temporary_allocator());
|
||||||
size_t size = PATH_MAX:
|
size_t size = PATH_MAX;
|
||||||
|
|
||||||
char const *cwd;
|
char const *cwd;
|
||||||
for (; cwd == nullptr; size *= 2) {
|
for (; cwd == nullptr; size *= 2) {
|
||||||
array_resize(&buf, size);
|
array_resize(&buf, size);
|
||||||
|
|
||||||
cwd = getcwd(buf.data, buf.count);
|
cwd = getcwd(buf.data, buf.count);
|
||||||
if cwd == nullptr && errno() != ERANGE {
|
if (cwd == nullptr && errno() != ERANGE) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user