add sanity check

This commit is contained in:
Doug MacEachern 2006-01-03 20:22:12 +00:00
parent 1f347a7d09
commit 1486b87692

View File

@ -1136,6 +1136,10 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
procargs->data[procargs->number++] = arg;
len -= alen;
if (len <= 0) {
break;
}
ptr += alen;
}