[Bug 195929] usr.bin/sed -- constify, remove line-length limits

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 17 21:17:01 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195929

Mikhail Teterin <mi at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #172615|0                           |1
        is obsolete|                            |

--- Comment #31 from Mikhail Teterin <mi at FreeBSD.org> ---
Created attachment 172616
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172616&action=edit
Updated patch

(In reply to Mikhail Teterin from comment #30)
> The recently-introduced bug must be in the process.c somewhere:

Yes, it would seem, the bug was introduced in base r300555. The check for
finding the right number of re-occurences is off by one. With this hunk added,
things seem to work:

        /* Did not find the requested number of matches. */
-       if (n > 1)
+       if (n > 0)
                return (0);

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list