libbb: fix wrong sscanf count check (affects pidof etc)

This commit is contained in:
Denis Vlasenko 2008-04-25 23:20:25 +00:00
parent b140eddc41
commit 16afa38a7b

View File

@ -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;