aboutsummaryrefslogtreecommitdiff
path: root/src/path.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-02 03:19:35 +0000
committer_ov4 <ov4@ov4.org>2026-09-02 03:19:35 +0000
commit663c40e2d9299697697cb4e4ce767b344a7ad7ec (patch)
tree26be0faaa247b0c258b1d99d0d6b66d4ff45c1ce /src/path.cc
parenta3d3f23d495054b2e97c696f6eccb8be9188d15f (diff)
posix
Diffstat (limited to 'src/path.cc')
-rw-r--r--src/path.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/path.cc b/src/path.cc
index 9e4a515..1d14528 100644
--- a/src/path.cc
+++ b/src/path.cc
@@ -63,7 +63,8 @@ int set_current_dir(const string &s)
string get_current_dir()
{
- return (string)(get_current_dir_name());
+ char buf[MAXLINE];
+ return (string)(getcwd(buf, MAXLINE));
}