From: Glenn L McGrath Date: Sun, 30 Mar 2003 08:40:09 +0000 (-0000) Subject: Small fix for sed 'y' command X-Git-Tag: 1_00_pre1~137 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30b47df86be1b7be99dc0987c3f397f09086bd6e;p=oweals%2Fbusybox.git Small fix for sed 'y' command --- 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) 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)