From e92f0532b279117c4fbd199c473aeb7b03c456ac Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 9 Jul 2010 15:06:27 +0000 Subject: [PATCH] fix for strlen bug (issue #303) from davebol --- build/windows/export/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/windows/export/launcher.cpp b/build/windows/export/launcher.cpp index be6009d4b..7bd2e0aa6 100644 --- a/build/windows/export/launcher.cpp +++ b/build/windows/export/launcher.cpp @@ -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,