diff options
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r-- | src/testing/testing_api_loop.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index 0110f2cc9..e34f87cc2 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c | |||
@@ -614,9 +614,13 @@ GNUNET_TESTING_command_new (void *cls, | |||
614 | 614 | ||
615 | GNUNET_assert (NULL != run); | 615 | GNUNET_assert (NULL != run); |
616 | if (NULL != label) | 616 | if (NULL != label) |
617 | { | ||
618 | GNUNET_assert (strlen (label) <= | ||
619 | GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); | ||
617 | strncpy (cmd.label, | 620 | strncpy (cmd.label, |
618 | label, | 621 | label, |
619 | GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); | 622 | GNUNET_TESTING_CMD_MAX_LABEL_LENGTH); |
623 | } | ||
620 | return cmd; | 624 | return cmd; |
621 | } | 625 | } |
622 | 626 | ||