mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Thinko in s//options. (Whitespace skipping in the wrong place.)
This commit is contained in:
parent
3b25185733
commit
40ec4aeb8e
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user