← Commit list

e01c550ea

Glenn L McGrath
Glenn L McGrath
2003-08-29
FAILED Duration: 77s

Subject

"A little patch for the strings applet of the busybox development tree that substitutes two lines of code with a libbb function saving a couple of bytes." - Tito

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/strings.c+3 -6
@@ -82,8 +82,7 @@ int strings_main(int argc, char **argv)
pipe:
count=0;
- do
- {
+ do{
c=fgetc(file);
if(ISSTR(c))
{
@@ -110,11 +109,9 @@ pipe:
i=0;
}
count++;
- }
- while(c!=EOF);
+ }while(c!=EOF);
- if(file!=stdin)
- fclose(file);
+ bb_fclose_nonstdin(file);
}
else
{