libbb: fix wrong sscanf count check (affects pidof etc)
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 25 Apr 2008 23:20:25 +0000 (23:20 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 25 Apr 2008 23:20:25 +0000 (23:20 -0000)
libbb/procps.c

index f67f7dcdeba1f03f491b0dddfbbdfd67cfb046e5..8946917a21d68f3eff8c471e5dcabfe22e7c6897 100644 (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;