Zero terminate the filename passed to the root thread

This commit is contained in:
Henrik Rydgard 2012-11-07 16:45:21 +01:00
parent dc86fbe818
commit baa11aede8

View File

@ -511,7 +511,7 @@ bool __KernelLoadExec(const char *filename, SceKernelLoadExecParam *param, std::
option.priority = 0x20;
option.stacksize = 0x40000; // crazy? but seems to be the truth
__KernelStartModule(m, (u32)strlen(filename), filename, &option);
__KernelStartModule(m, (u32)strlen(filename) + 1, filename, &option);
__KernelStartIdleThreads();
return true;