another formatting fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3278 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-02-07 18:35:26 +00:00
parent fc8e5cb0f2
commit 3d8d29d08a
1 changed files with 2 additions and 2 deletions

View File

@ -2006,8 +2006,8 @@ char **username_tab_completion(const char *buf, size_t *num_matches,
continue; continue;
#endif #endif
matches = (char **)nrealloc(matches, matches = (char **)nrealloc(matches, (*num_matches + 1) *
(*num_matches + 1) * sizeof(char *)); sizeof(char *));
matches[*num_matches] = matches[*num_matches] =
charalloc(strlen(userdata->pw_name) + 2); charalloc(strlen(userdata->pw_name) + 2);
sprintf(matches[*num_matches], "~%s", userdata->pw_name); sprintf(matches[*num_matches], "~%s", userdata->pw_name);