comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2889 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-07-18 05:23:04 +00:00
parent a0aa4df041
commit 24b1563068
1 changed files with 2 additions and 1 deletions

View File

@ -799,7 +799,8 @@ ssize_t do_replace_loop(const char *needle, const filestruct
if (i == 2) if (i == 2)
replaceall = TRUE; 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 + match = mallocstrncpy(NULL, openfile->current->data +
openfile->current_x, match_len + 1); openfile->current_x, match_len + 1);
match[match_len] = '\0'; match[match_len] = '\0';