diff options
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |