diff options
author | Andreas Antener <antener_a@gmx.ch> | 2015-01-31 16:05:40 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-10 08:39:46 +0100 |
commit | f8ff5b617b75f74481ef8631205a51d62c971c34 (patch) | |
tree | 43dacad09445421c23439e88fc221b643f028487 | |
parent | 959aefba637f3135a0213735e81c6b9b044eb670 (diff) | |
download | px4-firmware-f8ff5b617b75f74481ef8631205a51d62c971c34.tar.gz px4-firmware-f8ff5b617b75f74481ef8631205a51d62c971c34.tar.bz2 px4-firmware-f8ff5b617b75f74481ef8631205a51d62c971c34.zip |
updated comparison
-rw-r--r-- | src/modules/systemlib/param/param.c | 2 |
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); |