public: fix tautological-compare
This commit is contained in:
parent
cf35943f51
commit
e0d993a5a8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue