ps - Fix longstanding bug in initial populating loop
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Feb 2011 00:58:51 +0000 (16:58 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Feb 2011 00:58:51 +0000 (16:58 -0800)
commitbff1850cbe94ff3900efb21c70f33d614f3059ef
treee94095b03db63dca7adb70cf434a5d073e134831
parent257af5b63194a5c969c4c71e826fea64a7237b1f
ps - Fix longstanding bug in initial populating loop

* Fix the populating loop to not try to load KInfo[nentries],
  overflowing the array.

* Fixes a seg-fault which can occur when the allocated array is right on
  a page boundary.
bin/ps/ps.c