commit | d35c0efddbb7602512f439f74f0e984331740464 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Fri Sep 08 00:01:02 2006 +0000 |
committer | Rob Landley <rob@landley.net> | Fri Sep 08 00:01:02 2006 +0000 |
tree | d7d728559a79d92835154c51f83a04ba9707012d | |
parent | 239369b3685473094b2661c05634dfbe26f470b1 [diff] [blame] |
Bugfix for: echo '123456789' | sed 's/./|&/5'
diff --git a/editors/sed.c b/editors/sed.c index 40eef80..9f3af33 100644 --- a/editors/sed.c +++ b/editors/sed.c
@@ -627,7 +627,7 @@ end of match and continue */ if(sed_cmd->which_match && sed_cmd->which_match!=match_count) { for(i=0;i<bbg.regmatch[0].rm_eo;i++) - pipe_putc(oldline[i]); + pipe_putc(*(oldline++)); continue; }