diff options
author | Rob Landley | 2006-09-08 00:01:02 +0000 |
---|---|---|
committer | Rob Landley | 2006-09-08 00:01:02 +0000 |
commit | d35c0efddbb7602512f439f74f0e984331740464 (patch) | |
tree | d7d728559a79d92835154c51f83a04ba9707012d /editors | |
parent | 239369b3685473094b2661c05634dfbe26f470b1 (diff) | |
download | busybox-d35c0efddbb7602512f439f74f0e984331740464.zip busybox-d35c0efddbb7602512f439f74f0e984331740464.tar.gz |
Bugfix for: echo '123456789' | sed 's/./|&/5'
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ static int do_subst_command(sed_cmd_t *sed_cmd, char **line) 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; } |