add sanity check
This commit is contained in:
parent
1f347a7d09
commit
1486b87692
@ -1136,6 +1136,10 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
|
|||||||
|
|
||||||
procargs->data[procargs->number++] = arg;
|
procargs->data[procargs->number++] = arg;
|
||||||
|
|
||||||
|
len -= alen;
|
||||||
|
if (len <= 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
ptr += alen;
|
ptr += alen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user