Make output the same as upstream, patch by Tito
diff --git a/miscutils/strings.c b/miscutils/strings.c
index 043d6b8..3d3aaf5 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -50,7 +50,7 @@
minlen = -1;
while ((ch = getopt(argc, argv, "an:of")) > 0)
switch(ch) {
- case '-':
+ case 'a':
break;
case 'f':
fflg = 1;
@@ -86,6 +86,7 @@
foff = 0;
for (cnt = 0; (ch = getchar()) != EOF;) {
+ foff++;
if (ISSTR(ch)) {
if (!cnt)
C = bfr;
@@ -95,7 +96,7 @@
if (fflg)
printf("%s:", file);
if (oflg)
- printf("%07ld %s", (long)(foff - minlen), (char *)bfr);
+ printf("%7ld %s", (long)(foff - minlen), (char *)bfr);
else
printf("%s", bfr);
while ((ch = getchar()) != EOF && ISSTR(ch))