orctest: Allow enough room for sprintf()
authorEdward Hervey <edward@centricular.com>
Fri, 4 May 2018 07:21:16 +0000 (09:21 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 4 May 2018 07:21:16 +0000 (09:21 +0200)
We were writing more than 300 characters in some cases. Thanks gcc
8 for pointing that out :)

orc-test/orctest.c

index 2d07a35..7648e11 100644 (file)
@@ -205,7 +205,7 @@ orc_test_gcc_compile (OrcProgram *p)
 OrcTestResult
 orc_test_gcc_compile_neon (OrcProgram *p)
 {
-  char cmd[300];
+  char cmd[400];
   char *base;
   char source_filename[100];
   char obj_filename[100];
@@ -1086,7 +1086,7 @@ orc_test_performance_full (OrcProgram *program, int flags,
 OrcTestResult
 orc_test_gcc_compile_mips (OrcProgram *p)
 {
-  char cmd[300];
+  char cmd[400];
   char *base;
   char source_filename[100];
   char obj_filename[100];