2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 18:07:09 +01:00

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
if( result < 0 || result >= buffersize )
if( result >= buffersize )
{
buffer[buffersize - 1] = '\0';
return -1;