Added a function to convert multiple IOMMU groups into a single array
This commit is contained in:
@@ -244,7 +244,7 @@ result_t execute(int* _exit_code, char** _stdoutbuf, char** _stderrbuf, const ch
|
||||
|
||||
// Allocate memory for the arguments array
|
||||
errno = 0;
|
||||
char** argv = malloc((argc + 1) * sizeof(char*)); // +1 for the NULL terminator
|
||||
char** argv = malloc((argc + 1) * sizeof(char*)); // +1 for the null terminator
|
||||
if (argv == NULL)
|
||||
return failure("Failed to allocate memory for the arguments array (%s).", strerror(errno));
|
||||
|
||||
|
Reference in New Issue
Block a user