aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/delivery_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/delivery_test.c b/src/delivery_test.c
index 804cbc9..a9153d3 100644
--- a/src/delivery_test.c
+++ b/src/delivery_test.c
@@ -173,11 +173,11 @@ void delivery_tests_run(struct Delivery *ctx) {
exit(1);
}
- strcpy(cmd, test->script_setup);
+ strlcpy(cmd, test->script_setup, cmd_len);
char *cmd_rendered = tpl_render(cmd);
if (cmd_rendered) {
if (strcmp(cmd_rendered, cmd) != 0) {
- strcpy(cmd, cmd_rendered);
+ strlcpy(cmd, cmd_rendered, cmd_len);
cmd[strlen(cmd_rendered) ? strlen(cmd_rendered) - 1 : 0] = 0;
}
guard_free(cmd_rendered);