aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-08-15 20:30:07 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-08-15 20:30:07 +0200
commit3c5eb7a406b3b0d2b47c00eabbff7a3984ce3429 (patch)
treeef5ccc4faf70cbc9515cbe1791abbb2b2243882c /src/testing/testing_api_loop.c
parentc132968605dd3e824765e4c1154840f9659a3e70 (diff)
downloadgnunet-3c5eb7a406b3b0d2b47c00eabbff7a3984ce3429.tar.gz
gnunet-3c5eb7a406b3b0d2b47c00eabbff7a3984ce3429.zip
no silent label truncation
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c4
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