diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-01-04 06:42:14 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-01-04 06:42:14 +0000 |
commit | 428d563e050f2b41bb223180c6720a27fe7ec75f (patch) | |
tree | ecd830afd17d7b8306f78b04e8c1294f30ff5809 | |
parent | 3b85a2ee7782abfc2ed6729b03f57b1d2a4448b3 (diff) | |
download | busybox-w32-428d563e050f2b41bb223180c6720a27fe7ec75f.tar.gz busybox-w32-428d563e050f2b41bb223180c6720a27fe7ec75f.tar.bz2 busybox-w32-428d563e050f2b41bb223180c6720a27fe7ec75f.zip |
Thinko in s//options. (Whitespace skipping in the wrong place.)
git-svn-id: svn://busybox.net/trunk/busybox@8252 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | editors/sed.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
344 | sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10); | 344 | sed_cmd->which_match=(unsigned short)strtol(substr+idx,&pos,10); |
345 | idx=pos-substr; | 345 | idx=pos-substr; |
346 | } | 346 | } |
347 | /* Skip spaces */ | ||
348 | if(isspace(substr[idx])) continue; | ||
349 | continue; | 347 | continue; |
350 | } | 348 | } |
349 | /* Skip spaces */ | ||
350 | if(isspace(substr[idx])) continue; | ||
351 | |||
351 | switch (substr[idx]) { | 352 | switch (substr[idx]) { |
352 | /* Replace all occurrences */ | 353 | /* Replace all occurrences */ |
353 | case 'g': | 354 | case 'g': |