commit | 16afa38a7b6c837745492a785657c10b1b86f95c | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Fri Apr 25 23:20:25 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Fri Apr 25 23:20:25 2008 +0000 |
tree | d9c83d6a4134bde4ffd1e0408dc6ea9e19e6ddbb | |
parent | b140eddc415742d9ae5a4dc6b310fa59ea38cd19 [diff] [blame] |
libbb: fix wrong sscanf count check (affects pidof etc)
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 @@ &sp->start_time, &vsz, &rss); - if (n != 10) + if (n != 11) break; /* vsz is in bytes and we want kb */ sp->vsz = vsz >> 10;