1 2 3 4 5 6 7 8 9 10 11 12
|
diff -Naurp chkrootkit-0.49.orig//chkutmp.c chkrootkit-0.49//chkutmp.c
--- chkrootkit-0.49.orig//chkutmp.c 2009-07-30 09:43:17.000000000 -0400
+++ chkrootkit-0.49//chkutmp.c 2011-03-14 09:31:05.394307962 -0400
@@ -98,7 +98,7 @@ int fetchps(struct ps_line *psl_p)
while (isspace(*s)) /* skip spaces */
s++;
d = pid;
- for (x = 0; (!isspace(*s)) && (*d++ = *s++) && x <= UT_LINESIZE; x++) /* grab pid */
+ for (x = 0; (!isspace(*s)) && (*d++ = *s++) && x <= UT_PIDSIZE; x++) /* grab pid */
;
*d = '\0';
curp->ps_pid = atoi(pid);
|