mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: fix tautological-compare
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user