summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2003-03-30 08:40:09 +0000
committerGlenn L McGrath2003-03-30 08:40:09 +0000
commit30b47df86be1b7be99dc0987c3f397f09086bd6e (patch)
treeaac1eea3b06d93607f42786b7871019297763de1
parentf01b46d7ddd8159b53bd73af0378397bd36ef0fc (diff)
downloadbusybox-30b47df86be1b7be99dc0987c3f397f09086bd6e.zip
busybox-30b47df86be1b7be99dc0987c3f397f09086bd6e.tar.gz
Small fix for sed 'y' command
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 4c535b1..13155a9 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)
sed_cmd->translate[i * 2] = match[i];
sed_cmd->translate[(i * 2) + 1] = replace[i];
}
- return(idx);
+ return(idx + 1);
}
static int parse_edit_cmd(sed_cmd_t *sed_cmd, const char *editstr)