Browse Source

Let buffer for current path be auto-allocated

master
Arun Prakash Jana 4 years ago
parent
commit
55f2a0823a
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -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 {


||||||
x
 
000:0
Loading…
Cancel
Save