aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-04-25 23:20:25 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-04-25 23:20:25 +0000
commit16afa38a7b6c837745492a785657c10b1b86f95c (patch)
treed9c83d6a4134bde4ffd1e0408dc6ea9e19e6ddbb
parentb140eddc415742d9ae5a4dc6b310fa59ea38cd19 (diff)
downloadbusybox-16afa38a7b6c837745492a785657c10b1b86f95c.tar.gz
busybox-16afa38a7b6c837745492a785657c10b1b86f95c.tar.bz2
libbb: fix wrong sscanf count check (affects pidof etc)
-rw-r--r--libbb/procps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index f67f7dcde..8946917a2 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -258,7 +258,7 @@ procps_status_t *procps_scan(procps_status_t* sp, int flags)
&sp->start_time,
&vsz,
&rss);
- if (n != 10)
+ if (n != 11)
break;
/* vsz is in bytes and we want kb */
sp->vsz = vsz >> 10;