aboutsummaryrefslogtreecommitdiff
path: root/src/path.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-03-27 11:12:44 +0000
committergingerBill <bill@gingerbill.org>2025-03-27 11:12:44 +0000
commit1fc1a7fd51cec273619e1bcc80ae82fc7ed38032 (patch)
tree6cd621e9be1a892fa0c40a096a2b75ce2ae74b18 /src/path.cpp
parent0e6cc6ec4ba1c5cee8815303cd5b98e14a30ee29 (diff)
Fix typos
Diffstat (limited to 'src/path.cpp')
-rw-r--r--src/path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.cpp b/src/path.cpp
index 2217622c6..5a71c5463 100644
--- a/src/path.cpp
+++ b/src/path.cpp
@@ -79,14 +79,14 @@ String get_working_directory(gbAllocator allocator) {
TEMPORARY_ALLOCATOR_GUARD();
auto buf = array_make<char>(temporary_allocator());
- size_t size = PATH_MAX:
+ size_t size = PATH_MAX;
char const *cwd;
for (; cwd == nullptr; size *= 2) {
array_resize(&buf, size);
cwd = getcwd(buf.data, buf.count);
- if cwd == nullptr && errno() != ERANGE {
+ if (cwd == nullptr && errno() != ERANGE) {
return {};
}
}