diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-25 23:20:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-25 23:20:25 +0000 |
commit | 16afa38a7b6c837745492a785657c10b1b86f95c (patch) | |
tree | d9c83d6a4134bde4ffd1e0408dc6ea9e19e6ddbb /libbb | |
parent | b140eddc415742d9ae5a4dc6b310fa59ea38cd19 (diff) | |
download | busybox-16afa38a7b6c837745492a785657c10b1b86f95c.tar.gz |
libbb: fix wrong sscanf count check (affects pidof etc)
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/procps.c | 2 |
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; |