aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index 1ea1d5a26..190e20928 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -449,8 +449,9 @@ TALER_TESTING_run2 (struct TALER_TESTING_Interpreter *is,
/* get the number of commands */
for (i = 0; NULL != commands[i].label; i++)
;
- is->commands = GNUNET_new_array (i + 1,
- struct TALER_TESTING_Command);
+ is->commands = GNUNET_malloc_large ( (i + 1)
+ * sizeof (struct TALER_TESTING_Command));
+ GNUNET_assert (NULL != is->commands);
memcpy (is->commands,
commands,
sizeof (struct TALER_TESTING_Command) * i);