修改获取进程command的空间大小

This commit is contained in:
shaozhimin 2022-10-13 11:10:30 +08:00
parent 3661015ad7
commit e8802a7c99
1 changed files with 2 additions and 2 deletions

View File

@ -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;