diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-02 03:19:35 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-02 03:19:35 +0000 |
| commit | 663c40e2d9299697697cb4e4ce767b344a7ad7ec (patch) | |
| tree | 26be0faaa247b0c258b1d99d0d6b66d4ff45c1ce /src/path.cc | |
| parent | a3d3f23d495054b2e97c696f6eccb8be9188d15f (diff) | |
posix
Diffstat (limited to 'src/path.cc')
| -rw-r--r-- | src/path.cc | 3 |
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)); } |
