X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ad7b95181d5d66817aac46801cd80adbc4f2fac7..76fb825a64343da7a8aa9b16c5dbcab709504832:/stglibs/srvconf.lib/netunit.cpp diff --git a/stglibs/srvconf.lib/netunit.cpp b/stglibs/srvconf.lib/netunit.cpp index 4c3cc92e..f70cf27d 100644 --- a/stglibs/srvconf.lib/netunit.cpp +++ b/stglibs/srvconf.lib/netunit.cpp @@ -26,7 +26,9 @@ //--------------------------------------------------------------------------- -#include "stg/netunit.h" +#include "netunit.h" + +#include "stg/servconf_types.h" #include "stg/common.h" #include "stg/blowfish.h" @@ -38,6 +40,12 @@ #include #include +#include +#include +#include + +using namespace STG; + namespace { @@ -430,7 +438,7 @@ while (true) bool final = false; size_t pos = 0; - for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++); + for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++) ; if (pos < ENC_MSG_LEN && buffer[pos] == 0) final = true;