actually, arg > 1024 is reasonable in the case of java apps w/ hugeass -classpath

This commit is contained in:
Doug MacEachern committed 2005-10-08 00:27:07 +00:00
1 parent 6f2fc423d4
commit cacd0b97c1
1 file changed
+2 -2
+2 -2
View File
@@ -691,7 +691,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
{
psinfo_t *pinfo;
int fd, status;
char buffer[BUFSIZ];
char buffer[9086];
char *argvb[56];
char **argvp = argvb;
@@ -754,7 +754,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
sigar_proc_args_destroy(sigar, procargs);
return errno;
}
/* chances of arg > 1024 are slim, but just incase. */
buffer[nread] = '\0';
alen = strlen(buffer)+1;
arg = malloc(alen);