修改获取进程command的空间大小
This commit is contained in:
parent
3661015ad7
commit
e8802a7c99
|
@ -483,8 +483,8 @@ char* kdk_get_process_command(int proc_num)
|
|||
{
|
||||
FILE *fd;
|
||||
char path[128] = {0};
|
||||
char *command = (char *)malloc(500 * sizeof(char));
|
||||
char line[500] = {0};
|
||||
char *command = (char *)malloc(1024 * sizeof(char));
|
||||
char line[1024] = {0};
|
||||
|
||||
if (proc_num < 0 )
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue