fix for strlen bug (issue #303) from davebol

This commit is contained in:
benfry
2010-07-09 15:06:27 +00:00
parent 37b2bb298d
commit e92f0532b2
+1 -1
View File
@@ -40,7 +40,7 @@ int STDCALL
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
// command line that was passed to this application
char *incoming_cmd_line = (char *)malloc(strlen(lpCmd + 1) * sizeof(char));
char *incoming_cmd_line = (char *)malloc((strlen(lpCmd) + 1) * sizeof(char));
strcpy(incoming_cmd_line, lpCmd);
// get the full path to the application that was launched,