From 55f2a0823a2dea256d24707fdcf44cdf7d6c5670 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 26 Sep 2020 00:49:33 +0530 Subject: Let buffer for current path be auto-allocated --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 127818d..c0a2113 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 { -- cgit v1.2.3-70-g09d2