Hi there, I thought I had sent in all of these, but this was in my drafts and I didn't see it after searching the list & my sent items.
ok? Index: pkill.c =================================================================== RCS file: /cvs/src/usr.bin/pkill/pkill.c,v retrieving revision 1.34 diff -u -p -u -r1.34 pkill.c --- pkill.c 12 Nov 2013 13:54:51 -0000 1.34 +++ pkill.c 7 May 2014 01:08:45 -0000 @@ -277,9 +277,8 @@ main(int argc, char **argv) * Allocate memory which will be used to keep track of the * selection. */ - if ((selected = malloc(nproc)) == NULL) + if ((selected = calloc(1, nproc)) == NULL) errx(STATUS_ERROR, "memory allocation failure"); - memset(selected, 0, nproc); /* * Refine the selection. -- Peter Malone <pe...@petermalone.org>