nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 60da39cdf7f5a268994177ae49b35fd39830be78
parent 2e75c22759ad9f8d3b9f325079ef6543cac84b46
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Sat, 21 May 2016 21:32:47 +0200

files: fix a memory leak

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

diff --git a/src/files.c b/src/files.c @@ -1398,7 +1398,7 @@ char *get_full_path(const char *origpath) while (d_here == NULL && attempts < 20) { IGNORE_CALL_RESULT(chdir("..")); - d_here = getcwd(NULL, PATH_MAX + 1); + d_here = getcwd(currentdir, PATH_MAX + 1); attempts++; }