diff --git a/QnetConfigure.cpp b/QnetConfigure.cpp index 200e388..2fef362 100644 --- a/QnetConfigure.cpp +++ b/QnetConfigure.cpp @@ -231,7 +231,7 @@ bool CQnetConfigure::GetValue(const std::string &path, const std::string &mod, s return true; } int l = dvalue.length(); - if (lmax) { + if (min-1>=l || l>max) { printf("Default value %s='%s' is wrong size\n", path.c_str(), value.c_str()); return true; }