nano

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

commit 24b156306821590c638cf6ac068dabada71211f6
parent a0aa4df04147477e7f2eeeb841b744826f224490
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Mon, 18 Jul 2005 05:23:04 +0000

comment fix


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

Diffstat:
Msrc/search.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -799,7 +799,8 @@ ssize_t do_replace_loop(const char *needle, const filestruct if (i == 2) replaceall = TRUE; - /* Get the match's length in single-byte characters. */ + /* Make sure the string we replace is the match's length in + * single-byte characters. */ match = mallocstrncpy(NULL, openfile->current->data + openfile->current_x, match_len + 1); match[match_len] = '\0';