diff options
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing_api_loop.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index 1ea1d5a2..190e2092 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); | 
