fix some cppcheck errors and warnings in config module and T Tracer

This commit is contained in:
frtabu
2019-01-22 22:43:33 +01:00
parent 974167b51c
commit d171e18c1e
5 changed files with 346 additions and 164 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ int config_check_unknown_cmdlineopt(char *prefix) {
if (strcmp(prefix,CONFIG_CHECKALLSECTIONS) == 0)
finalcheck = 1;
else if (strlen(prefix) > 0) {
sprintf(testprefix,"--%s.",prefix);
sprintf(testprefix,"--%.*s.",CONFIG_MAXOPTLENGTH-1,prefix);
}
}