public: fix tautological-compare

This commit is contained in:
Alibek Omarov 2019-10-18 07:23:34 +03:00
parent cf35943f51
commit e0d993a5a8

View File

@ -569,7 +569,7 @@ int Q_vsnprintf( char *buffer, size_t buffersize, const char *format, va_list ar
} }
#endif #endif
if( result < 0 || result >= buffersize ) if( result >= buffersize )
{ {
buffer[buffersize - 1] = '\0'; buffer[buffersize - 1] = '\0';
return -1; return -1;