diff --git a/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c b/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c index 492467656c0..aa5680dc237 100644 --- a/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c +++ b/subsystems/mvdm/ntvdm/dos/dos32krnl/process.c @@ -13,6 +13,7 @@ #define NDEBUG #include +#include #include "emulator.h" #include "cpu/cpu.h" @@ -803,9 +804,9 @@ WORD DosCreateProcess(IN LPCSTR ProgramName, CHAR ExpName[MAX_PATH]; ExpandEnvironmentStringsA(AppName, ExpName, ARRAYSIZE(ExpName) - 1); - strcat(ExpName, "\""); // Add double-quote before ProgramName - strcat(ExpName, ProgramName); // Append Program name - strcat(ExpName, "\""); // Add double-quote after ProgramName + StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote before ProgramName + StringCbCatA(ExpName, sizeof(ExpName), ProgramName); // Append Program name + StringCbCatA(ExpName, sizeof(ExpName), "\""); // Add double-quote after ProgramName ZeroMemory(&pi, sizeof(pi)); ZeroMemory(&si, sizeof(si));