mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Let buffer for current path be auto-allocated
This commit is contained in:
parent
2e870f3879
commit
55f2a0823a
|
@ -7657,7 +7657,7 @@ int main(int argc, char *argv[])
|
||||||
session = NULL;
|
session = NULL;
|
||||||
} else if (argc == optind) {
|
} else if (argc == optind) {
|
||||||
/* Start in the current directory */
|
/* Start in the current directory */
|
||||||
initpath = getcwd(NULL, PATH_MAX);
|
initpath = getcwd(NULL, 0);
|
||||||
if (!initpath)
|
if (!initpath)
|
||||||
initpath = "/";
|
initpath = "/";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue