ide, ecere: Fixed command lines truncated for Debug Compiling
authorJerome St-Louis <jerome@ecere.com>
Thu, 2 May 2013 10:36:47 +0000 (06:36 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 2 May 2013 10:36:47 +0000 (06:36 -0400)
- Increased buffer size (MAX_F_STRING*4) in Project::Build, Execute() and ShellOpen()

ecere/src/sys/System.c
ide/src/project/Project.ec

index e686a69..d044b8b 100644 (file)
@@ -302,7 +302,7 @@ void System_UnsetEnvironment(char * envName)
 bool System_Execute(char * env, char * command, va_list args)
 {
    bool result = false;
-   char commandLine[MAX_F_STRING];
+   char commandLine[MAX_F_STRING*4];
    vsnprintf(commandLine, sizeof(commandLine)-1, command, args);
    commandLine[sizeof(commandLine)-1] = 0;
 
@@ -331,7 +331,7 @@ bool System_Execute(char * env, char * command, va_list args)
 bool System_ShellOpen(char * fileName, va_list args)
 {
    bool result = false;
-   char filePath[MAX_F_STRING];
+   char filePath[MAX_F_STRING*4];
    int len;
 #if defined(__WIN32__)
    filePath[0] = '"';
index 752bfcc..6ab6e6e 100644 (file)
@@ -1945,7 +1945,7 @@ private:
       char * targetPlatform = crossCompiling ? (char *)compiler.targetPlatform : "";
 
       int numJobs = compiler.numJobs;
-      char command[MAX_F_STRING];
+      char command[MAX_F_STRING*4];
       char * compilerName;
 
       compilerName = CopyString(compiler.name);