nano

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

commit 10796ac2fc5c68f6d8ae0b082a71db3068f1d191
parent aff5a1c6b1ee2a2b599c4ca3fe2754b25ebaa814
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Fri, 27 May 2005 13:50:31 +0000

cosmetic fixes


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

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

diff --git a/src/files.c b/src/files.c @@ -1988,7 +1988,7 @@ int is_dir(const char *buf) struct stat fileinfo; int ret = (stat(dirptr, &fileinfo) != -1 && - S_ISDIR(fileinfo.st_mode)); + S_ISDIR(fileinfo.st_mode)); assert(buf != NULL && dirptr != buf); @@ -2078,7 +2078,7 @@ char **cwd_tab_completion(const char *buf, size_t *num_matches, size_t char *tmpdirname = filename + 1; filename = mallocstrcpy(NULL, tmpdirname); - tmpdirname[0] = '\0'; + *tmpdirname = '\0'; tmpdirname = dirname; dirname = real_dir_from_tilde(dirname); free(tmpdirname);