* Mini sed implementation for busybox
*
*
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000 by Lineo, inc.
* Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
*
* Modifications for addresses and append command have been
if (feof(fp))
return 1;
else {
- char ch;
+ int ch;
if ((ch = fgetc(fp)) == EOF)
res++;
usage(sed_usage);
}
- if (**argv == '-') {
+ while (argc > 1) {
+ if (**argv != '-')
+ usage(sed_usage);
argc--;
cp = *argv++;
stopNow = FALSE;
usage(sed_usage);
}
}
- }
+ }
if (argc == 0) {
switch (sed_f) {