diff options
Diffstat (limited to 'freebsd/FreeBSDProcessList.c')
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index cc51a7cd..4abe7b8c 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -115,7 +115,7 @@ char* FreeBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, in for (int i = 0; argv[i]; i++) { len += strlen(argv[i]) + 1; } - char* comm = malloc(len * sizeof(char)); + char* comm = malloc(len); char* at = comm; *basenameEnd = 0; for (int i = 0; argv[i]; i++) { |