aboutsummaryrefslogtreecommitdiff
path: root/miscutils/strings.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-08-29 15:48:37 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-08-29 15:48:37 +0000
commit1ab5a4a59e8639851a4ced9261943e60040ab3bc (patch)
tree3f0b846ce382cacd81d41ddf4e0b1fcdaaae18b3 /miscutils/strings.c
parentf089b82d53013e64782008fb6f00b87a38d4babd (diff)
downloadbusybox-w32-1ab5a4a59e8639851a4ced9261943e60040ab3bc.tar.gz
busybox-w32-1ab5a4a59e8639851a4ced9261943e60040ab3bc.tar.bz2
busybox-w32-1ab5a4a59e8639851a4ced9261943e60040ab3bc.zip
"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 git-svn-id: svn://busybox.net/trunk/busybox@7291 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/strings.c')
-rw-r--r--miscutils/strings.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/miscutils/strings.c b/miscutils/strings.c
index c914338d5..6e4534585 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -82,8 +82,7 @@ int strings_main(int argc, char **argv)
82pipe: 82pipe:
83 83
84 count=0; 84 count=0;
85 do 85 do{
86 {
87 c=fgetc(file); 86 c=fgetc(file);
88 if(ISSTR(c)) 87 if(ISSTR(c))
89 { 88 {
@@ -110,11 +109,9 @@ pipe:
110 i=0; 109 i=0;
111 } 110 }
112 count++; 111 count++;
113 } 112 }while(c!=EOF);
114 while(c!=EOF);
115 113
116 if(file!=stdin) 114 bb_fclose_nonstdin(file);
117 fclose(file);
118 } 115 }
119 else 116 else
120 { 117 {