mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Let buffer for current path be auto-allocated
This commit is contained in:
parent
2e870f3879
commit
55f2a0823a
1 changed files with 1 additions and 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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue