]> git.wh0rd.org Git - nano.git/commitdiff
comment fix
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 18 Jul 2005 05:23:04 +0000 (05:23 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 18 Jul 2005 05:23:04 +0000 (05:23 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2889 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index f9c9472062acf2fd0cfb25647d5fbca3b7c7289d..034d3de2953063440115f2c663468e6d31f3713d 100644 (file)
@@ -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';