summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2008-04-25 23:20:25 +0000
committerDenis Vlasenko2008-04-25 23:20:25 +0000
commit16afa38a7b6c837745492a785657c10b1b86f95c (patch)
treed9c83d6a4134bde4ffd1e0408dc6ea9e19e6ddbb /libbb
parentb140eddc415742d9ae5a4dc6b310fa59ea38cd19 (diff)
downloadbusybox-16afa38a7b6c837745492a785657c10b1b86f95c.zip
busybox-16afa38a7b6c837745492a785657c10b1b86f95c.tar.gz
libbb: fix wrong sscanf count check (affects pidof etc)
Diffstat (limited to 'libbb')
-rw-r--r--libbb/procps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index f67f7dc..8946917 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;