From: David Lawrence Ramsey Date: Thu, 26 May 2005 18:57:56 +0000 (+0000) Subject: formatting fixes X-Git-Tag: v1.3.8~248 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e5b23bd2ff6454409f6366745bccc5ec43eaf68f;p=nano.git formatting fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2555 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index b3139011..d704f6ab 100644 --- a/src/files.c +++ b/src/files.c @@ -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'; + tmpdirname[0] = '\0'; tmpdirname = dirname; dirname = real_dir_from_tilde(dirname); free(tmpdirname); @@ -2222,7 +2222,8 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list) *lastwastab = FALSE; buf = charealloc(buf, common_len + buflen - *place + 1); - charmove(buf + common_len, buf + *place, buflen - *place + 1); + charmove(buf + common_len, buf + *place, + buflen - *place + 1); charcpy(buf, mzero, common_len); *place = common_len; } else if (*lastwastab == FALSE || num_matches < 2)