File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3383,7 +3383,7 @@ try
3383
3383
const std::string KernelModulesList = wsl::shared::string::FromSpan (Buffer, EarlyConfig->KernelModulesListOffset );
3384
3384
for (const auto & Module : wsl::shared::string::Split (KernelModulesList, ' ,' ))
3385
3385
{
3386
- const char * Argv[] = {MODPROBE_PATH, Module.c_str ()};
3386
+ const char * Argv[] = {MODPROBE_PATH, Module.c_str (), nullptr };
3387
3387
int Status = -1 ;
3388
3388
auto result = UtilCreateProcessAndWait (MODPROBE_PATH, Argv, &Status);
3389
3389
if (result < 0 )
Original file line number Diff line number Diff line change @@ -682,7 +682,7 @@ Return Value:
682
682
// 2. In sometime we probably will replace most of these string constants
683
683
// with std::string anyway.
684
684
execv (File, const_cast <char * const *>(Argv));
685
- LOG_ERROR (" {} failed with {}" , File, errno);
685
+ LOG_ERROR (" execv({}) failed with {}" , File, errno);
686
686
exit (-1 );
687
687
}
688
688
You can’t perform that action at this time.
0 commit comments