commit b5652a4d569220842f87c0a0ae8221523e5a548c
parent 98bca94758321d59a28bdd6ba8dd6cd331552105
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 13 Oct 2006 16:35:57 +0000
fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3901 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -8,9 +8,6 @@ CVS code -
- Since the field precision operator used in the sprintf() uses
ints and not size_t's, replace it with two strncpy()s, which
use size_t's. (DLR)
- - If the tab-completed path is a directory, make sure enough
- space is allocated before tacking a slash onto the end of it.
- (DLR)
- help.c:
parse_help_input()
- Add 'E' and 'e' as aliases for Exit, for consistency with the
diff --git a/src/files.c b/src/files.c
@@ -2249,10 +2249,7 @@ char *input_tab(char *buf, bool allow_files, size_t *place, bool
assert(common_len >= *place);
if (num_matches == 1 && is_dir(mzero)) {
- common_len++;
- mzero = charealloc(mzero, common_len + 1);
- mzero[common_len - 1] = '/';
- mzero[common_len] = '\0';
+ mzero[common_len++] = '/';
assert(common_len > *place);
}