aboutsummaryrefslogtreecommitdiff
path: root/tests/test_multiprocessing.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-17 12:05:20 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-17 12:05:20 -0400
commit0c6bcfb345075dc042b139bcdfbc11cd862c7258 (patch)
tree6dd2c632663f94fb8b390c05b8ed51ad4e5f5872 /tests/test_multiprocessing.c
parent90cbf865cb6e88d5db6484040dc4dc885f88caed (diff)
downloadstasis-0c6bcfb345075dc042b139bcdfbc11cd862c7258.tar.gz
Fix incorrect usage of maxlen argument in snprintf calls
Diffstat (limited to 'tests/test_multiprocessing.c')
-rw-r--r--tests/test_multiprocessing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c
index 3b98b77..767a9e0 100644
--- a/tests/test_multiprocessing.c
+++ b/tests/test_multiprocessing.c
@@ -137,7 +137,7 @@ void test_mp_fail_fast() {
for (size_t i = 0; i < sizeof(commands_ff) / sizeof(*commands_ff); i++) {
char *command = commands_ff[i];
char taskname[100] = {0};
- snprintf(taskname, sizeof(taskname) - 1, "task_%03zu", i);
+ snprintf(taskname, sizeof(taskname), "task_%03zu", i);
STASIS_ASSERT(mp_pool_task(p, taskname, NULL, (char *) command) != NULL, "Failed to queue task");
}