From f8ff5b617b75f74481ef8631205a51d62c971c34 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Sat, 31 Jan 2015 16:05:40 +0100 Subject: [PATCH] updated comparison --- src/modules/systemlib/param/param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c index 68721598d9..94935d9c3a 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);