aboutsummaryrefslogtreecommitdiff
path: root/tests/framework.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-05-24 13:14:17 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-05-24 13:14:17 -0400
commitd49c5007dd28278cd8c1a2bb48a1ede24864bbdc (patch)
tree8f1d9be0b2659d58d3a9f3fef11261d4a0043ae0 /tests/framework.h
parent091b1d6b496f2dcacff96230dbcc5d68722fa4d3 (diff)
downloadspmc-d49c5007dd28278cd8c1a2bb48a1ede24864bbdc.tar.gz
Allocate enough stack to support all of its potential arguments
Diffstat (limited to 'tests/framework.h')
-rw-r--r--tests/framework.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/framework.h b/tests/framework.h
index aefdef2..12507e2 100644
--- a/tests/framework.h
+++ b/tests/framework.h
@@ -155,7 +155,7 @@ char *mock_image(int img_type, const char *img_name, char **_extra_compiler_args
char code[255] = {0,};
char code_filename[FILENAME_MAX] = {0,};
char img_filename[FILENAME_MAX] = {0,};
- char cmd[PATH_MAX] = {0,};
+ char cmd[PATH_MAX * (FILENAME_MAX * 2)] = {0,};
char *extra_compiler_args = NULL;
Process *proc = NULL;