Project

General

Profile

5701a-r14487.diff

Galya B, 02/02/2023 04:16 AM

Download (1.17 KB)

View differences:

src/native/spawn.c 2023-02-02 08:04:48 +0000
1018 1018

  
1019 1019
   if (output_to_file_opt_found == 1)
1020 1020
   {
1021
      int len = strlen(output_file_name) + 1;
1022
      arguments[length + 1] = (char*) malloc(len * sizeof(char));
1023
      memset(arguments[length + 1], '\0', len);
1021
      int size = (strlen(output_file_name) + 1) * sizeof(char);
1022
      arguments[length + 1] = (char*) malloc(size);
1023
      memset(arguments[length + 1], '\0', size);
1024 1024
      strcpy(arguments[length + 1], output_file_name);
1025 1025
   }
1026 1026
   
src/native/winspawn.c 2023-02-02 08:50:49 +0000
857 857
   
858 858
   if (outputToFileOption == 1)
859 859
   {
860
      int len = strlen(szOutputFile) + 1;
861
      arguments[length + 1] = (char*) malloc(len * sizeof(char));
862
      memset(arguments[length + 1], '\0', len);
860
      int size = (strlen(szOutputFile) + 1) * sizeof(char);
861
      arguments[length + 1] = (char*) malloc(size);
862
      memset(arguments[length + 1], '\0', size);
863 863
      strcpy(arguments[length + 1], szOutputFile);
864 864
   }
865 865