Added a function to convert multiple IOMMU groups into a single array

This commit is contained in:
2024-02-21 17:30:13 +01:00
parent b1efb848b2
commit 839b6ddabc
4 changed files with 88 additions and 6 deletions

View File

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