From: Rob Landley Date: Sun, 4 Jan 2004 06:42:14 +0000 (-0000) Subject: Thinko in s//options. (Whitespace skipping in the wrong place.) X-Git-Tag: 1_00_pre6~67 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40ec4aeb8e26199a076627060a888c80146ab753;p=oweals%2Fbusybox.git Thinko in s//options. (Whitespace skipping in the wrong place.) --- diff --git a/editors/sed.c b/editors/sed.c index 5f58fe27a..a0d0cf74b 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -344,10 +344,11 @@ static int parse_subst_cmd(sed_cmd_t * const sed_cmd, char *substr) sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10); idx=pos-substr; } - /* Skip spaces */ - if(isspace(substr[idx])) continue; continue; } + /* Skip spaces */ + if(isspace(substr[idx])) continue; + switch (substr[idx]) { /* Replace all occurrences */ case 'g':