aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2025-05-29 13:15:09 -0400
committerGitHub <noreply@github.com>2025-05-29 13:15:09 -0400
commitb99daf7d16227f9dc9197699d7b24d2373fa5219 (patch)
treeeb73d5e722d82718b370e8d66831bf6b98580d22
parenta4fb4b69dc05368c8e7f605c6bbaab244fcdd426 (diff)
parent70ee5f2b1e3da849c6381d7abadc965697ac6e4d (diff)
downloadstasis-b99daf7d16227f9dc9197699d7b24d2373fa5219.tar.gz
Merge pull request #106 from jhunkeler/fix-strcmp-len
Compare up to the length of the name string, not the package.
-rw-r--r--src/lib/delivery/delivery_install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_install.c b/src/lib/delivery/delivery_install.c
index 246c604..c8ddfa4 100644
--- a/src/lib/delivery/delivery_install.c
+++ b/src/lib/delivery/delivery_install.c
@@ -36,7 +36,7 @@ static char *have_spec_in_config(const struct Delivery *ctx, const char *name) {
strncpy(package, config_spec, sizeof(package) - 1);
}
remove_extras(package);
- if (strncmp(package, name, strlen(package)) == 0) {
+ if (strncmp(package, name, strlen(name)) == 0) {
return config_spec;
}
}