From: Denis Vlasenko Date: Fri, 25 Apr 2008 23:20:25 +0000 (-0000) Subject: libbb: fix wrong sscanf count check (affects pidof etc) X-Git-Tag: 1_11_0~285 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16afa38a7b6c837745492a785657c10b1b86f95c;p=oweals%2Fbusybox.git libbb: fix wrong sscanf count check (affects pidof etc) --- 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;