SCCS-vsn: usr.bin/sed/process.c 5.9
-static char sccsid[] = "@(#)process.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)process.c 5.9 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
regex_t *re;
size_t re_off;
int n;
regex_t *re;
size_t re_off;
int n;
s = ps;
re = cp->u.s->re;
s = ps;
re = cp->u.s->re;
do {
/* Locate start of replaced string. */
re_off = match[0].rm_so;
do {
/* Locate start of replaced string. */
re_off = match[0].rm_so;
- /* Locate end of replaced string + 1. */
- endp = s + match[0].rm_eo;
/* Copy leading retained string. */
cspace(&SS, s, re_off, APPEND);
/* Add in regular expression. */
/* Copy leading retained string. */
cspace(&SS, s, re_off, APPEND);
/* Add in regular expression. */