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;
 		}