From: Arun Prakash Jana Date: Fri, 25 Sep 2020 19:19:33 +0000 (+0530) Subject: Let buffer for current path be auto-allocated X-Git-Tag: v3.5~53 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=55f2a0823a2dea256d24707fdcf44cdf7d6c5670;p=nnn.git Let buffer for current path be auto-allocated --- diff --git a/src/nnn.c b/src/nnn.c index 127818d7..c0a21139 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 {