diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-30 08:40:09 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-03-30 08:40:09 +0000 |
commit | be5e784027d2c1dcad575b5e368f591926144824 (patch) | |
tree | aac1eea3b06d93607f42786b7871019297763de1 | |
parent | 1c2674583cb725d00a882d480edfe205d6d5c822 (diff) | |
download | busybox-w32-be5e784027d2c1dcad575b5e368f591926144824.tar.gz busybox-w32-be5e784027d2c1dcad575b5e368f591926144824.tar.bz2 busybox-w32-be5e784027d2c1dcad575b5e368f591926144824.zip |
Small fix for sed 'y' command
git-svn-id: svn://busybox.net/trunk/busybox@6770 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 4c535b1e3..13155a97e 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -343,7 +343,7 @@ static int parse_translate_cmd(sed_cmd_t * const sed_cmd, const char *cmdstr) | |||
343 | sed_cmd->translate[i * 2] = match[i]; | 343 | sed_cmd->translate[i * 2] = match[i]; |
344 | sed_cmd->translate[(i * 2) + 1] = replace[i]; | 344 | sed_cmd->translate[(i * 2) + 1] = replace[i]; |
345 | } | 345 | } |
346 | return(idx); | 346 | return(idx + 1); |
347 | } | 347 | } |
348 | 348 | ||
349 | static int parse_edit_cmd(sed_cmd_t *sed_cmd, const char *editstr) | 349 | static int parse_edit_cmd(sed_cmd_t *sed_cmd, const char *editstr) |