Fix windows crash trying to log a bad sql query longer than the buffer, changed VSPRINTF from vsprintf_s to vsnprintf
Fix windows crash trying to log a bad sql query longer than the buffer, changed VSPRINTF from vsprintf_s to vsnprintf

k2informatics/erloci,K2InformaticsGmbH/erloci,k2informatics/erloci,K2InformaticsGmbH/erloci,sergej-klimenko/erloci,k2informatics/erloci,sergej-klimenko/erloci,sergej-klimenko/erloci,K2InformaticsGmbH/erloci