From 738fb33994dd60ccbb33b328bd6028836a463490 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Wed, 1 Oct 2003 06:45:11 +0000 Subject: [PATCH] Patch by Rob Landley, fix "newline after edit command" --- editors/sed.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editors/sed.c b/editors/sed.c index 6452a321c..3d6d72c68 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -176,8 +176,8 @@ static void parse_escapes(char *dest, const char *string, int len, char from, ch while(istring = bb_xstrdup(cmdstr); + parse_escapes(sed_cmd->string,sed_cmd->string,strlen(cmdstr),0,0); cmdstr += strlen(cmdstr); /* handle file cmds: (r)ead */ } else if(strchr("rw", sed_cmd->cmd)) {