diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-08 00:01:02 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-08 00:01:02 +0000 |
commit | 7f83ab913ce5d6963431fb77a4b30a2b4fa2b72e (patch) | |
tree | d7d728559a79d92835154c51f83a04ba9707012d | |
parent | f8177a0e6fe0e5e7b0a49b1f80aa5dd4afff9a91 (diff) | |
download | busybox-w32-7f83ab913ce5d6963431fb77a4b30a2b4fa2b72e.tar.gz busybox-w32-7f83ab913ce5d6963431fb77a4b30a2b4fa2b72e.tar.bz2 busybox-w32-7f83ab913ce5d6963431fb77a4b30a2b4fa2b72e.zip |
Bugfix for: echo '123456789' | sed 's/./|&/5'
git-svn-id: svn://busybox.net/trunk/busybox@16067 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 40eef80bc..9f3af33ed 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) | |||
627 | end of match and continue */ | 627 | end of match and continue */ |
628 | if(sed_cmd->which_match && sed_cmd->which_match!=match_count) { | 628 | if(sed_cmd->which_match && sed_cmd->which_match!=match_count) { |
629 | for(i=0;i<bbg.regmatch[0].rm_eo;i++) | 629 | for(i=0;i<bbg.regmatch[0].rm_eo;i++) |
630 | pipe_putc(oldline[i]); | 630 | pipe_putc(*(oldline++)); |
631 | continue; | 631 | continue; |
632 | } | 632 | } |
633 | 633 | ||