aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 127818d..c0a2113 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7657,7 +7657,7 @@ int main(int argc, char *argv[])
session = NULL;
} else if (argc == optind) {
/* Start in the current directory */
- initpath = getcwd(NULL, PATH_MAX);
+ initpath = getcwd(NULL, 0);
if (!initpath)
initpath = "/";
} else {