nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 55f2a0823a2dea256d24707fdcf44cdf7d6c5670
parent 2e870f3879eb7b2b2a7e0dce850ae039937d4480
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 26 Sep 2020 00:49:33 +0530

Let buffer for current path be auto-allocated

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 {