fix for min length check of config value

pull/12/head
Tom Early 7 years ago
parent a0feb96d2d
commit ec0efc5908

@ -231,7 +231,7 @@ bool CQnetConfigure::GetValue(const std::string &path, const std::string &mod, s
return true;
}
int l = dvalue.length();
if (l<min || l>max) {
if (min-1>=l || l>max) {
printf("Default value %s='%s' is wrong size\n", path.c_str(), value.c_str());
return true;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.