nano

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

commit afeed5f64092382868b25393751f5321e303b810
parent aa4eb40e7141c97ccdc02aebf3e4bf98186fe710
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed,  5 Jul 2006 15:21:18 +0000

comment fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3755 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/files.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -911,7 +911,8 @@ char *get_full_path(const char *origpath) return NULL; /* Get the current directory. If it doesn't exist, back up and try - * again until we get a directory that does. */ + * again until we get a directory that does, and use that as the + * current directory. */ d_here = charalloc(PATH_MAX + 1); d_here = getcwd(d_here, PATH_MAX + 1); @@ -976,7 +977,7 @@ char *get_full_path(const char *origpath) * d_there. */ null_at(&d_there, last_slash - d_there + 1); - /* chdir() to the path specified in d_there. */ + /* Go to the path specified in d_there. */ if (chdir(d_there) == -1) { free(d_there); d_there = NULL;