← Commit list

e931909d2

Eric Andersen
Eric Andersen
2003-01-09
SOURCE BUG Duration: 2s

Subject

Additional patch from Tito to fix some anomolies

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/strings.c+10 -2
@@ -44,7 +44,7 @@ int strings_main(int argc, char **argv)
char *file;
size_t foff, minlen;
unsigned char *bfr, *C;
-
+ int i;
exitcode = fflg = oflg = 0;
minlen = -1;
@@ -96,11 +96,19 @@ int strings_main(int argc, char **argv)
if (fflg)
printf("%s:", file);
if (oflg)
- printf("%7ld %s", (long)(foff - minlen), (char *)bfr);
+ printf("%7lo %s", (long)(foff - minlen), (char *)bfr);
else
printf("%s", bfr);
+ i=0;
while ((ch = getchar()) != EOF && ISSTR(ch))
+ {
putchar((char)ch);
+ i++;
+ }
+ if(i>0)
+ foff+=(i+1);
+ else
+ foff++;
putchar('\n');
}
cnt = 0;