aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/systemlib/param/param.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c
index 68721598d..94935d9c3 100644
--- a/src/modules/systemlib/param/param.c
+++ b/src/modules/systemlib/param/param.c
@@ -500,7 +500,7 @@ param_reset_excludes(const char* excludes[], int num_excludes)
for (int index = 0, len = strlen(excludes[index]); index < num_excludes; index ++) {
if((excludes[index][len - 1] == '*'
- && strncmp(name, excludes[index], strlen(excludes[index]))) == 0
+ && strncmp(name, excludes[index], len - 1)) == 0
|| strcmp(name, excludes[index]) == 0) {
param_reset(param);