From 0c874292ed62011edd1ebc3ef21fe8a9877ce79e Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Fri, 20 Jan 2006 12:30:21 +0000 Subject: [PATCH] Fix hpt (fidoconfig) version check --- goldlib/gcfg/gxhpt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldlib/gcfg/gxhpt.cpp b/goldlib/gcfg/gxhpt.cpp index 75c699d..0d088f7 100644 --- a/goldlib/gcfg/gxhpt.cpp +++ b/goldlib/gcfg/gxhpt.cpp @@ -206,7 +206,7 @@ void gareafile::ReadHPTFile(char* path, char* file, char* origin, int group) { { int ver_maj, ver_min; sscanf(val, "%d.%d", &ver_maj, &ver_min); - if ((ver_maj != 0) and (ver_min != 15)) + if ((ver_maj != 0) and (ver_min >= 0) and (ver_min < 15)) { STD_PRINTNL("* Error: Unknown fidoconfig version " << ver_maj << '.' << ver_min << " - Skipping."); throw_xfree(alptr);