Small fix for sed 'y' command

This commit is contained in:
Glenn L McGrath 2003-03-30 08:40:09 +00:00
parent f01b46d7dd
commit 30b47df86b

View File

@ -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)