diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-17 12:05:20 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-17 12:05:20 -0400 |
| commit | 0c6bcfb345075dc042b139bcdfbc11cd862c7258 (patch) | |
| tree | 6dd2c632663f94fb8b390c05b8ed51ad4e5f5872 /tests/test_artifactory.c | |
| parent | 90cbf865cb6e88d5db6484040dc4dc885f88caed (diff) | |
| download | stasis-0c6bcfb345075dc042b139bcdfbc11cd862c7258.tar.gz | |
Fix incorrect usage of maxlen argument in snprintf calls
Diffstat (limited to 'tests/test_artifactory.c')
| -rw-r--r-- | tests/test_artifactory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_artifactory.c b/tests/test_artifactory.c index 0d84289..fadc9f1 100644 --- a/tests/test_artifactory.c +++ b/tests/test_artifactory.c @@ -15,14 +15,14 @@ const char *gbuild_num = "1"; static int jfrog_cli_rt_build_delete(struct JFRT_Auth *auth, char *build_name, char *build_num) { char cmd[STASIS_BUFSIZ]; memset(cmd, 0, sizeof(cmd)); - snprintf(cmd, sizeof(cmd) - 1, "--build \"%s/%s\"", build_name, build_num); + snprintf(cmd, sizeof(cmd), "--build \"%s/%s\"", build_name, build_num); return jfrog_cli(auth, "rt", "delete", cmd); } static int jfrog_cli_rt_delete(struct JFRT_Auth *auth, char *pattern) { char cmd[STASIS_BUFSIZ]; memset(cmd, 0, sizeof(cmd)); - snprintf(cmd, sizeof(cmd) - 1, "\"%s\"", pattern); + snprintf(cmd, sizeof(cmd), "\"%s\"", pattern); return jfrog_cli(auth, "rt", "delete", cmd); } |
