From 70ee5f2b1e3da849c6381d7abadc965697ac6e4d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 29 May 2025 13:02:09 -0400 Subject: Compare up to the length of the name string, not the package. --- src/lib/delivery/delivery_install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit