mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-21 14:23:03 +01:00
vsnprintf: Fix crash when _out is NULL.
This commit is contained in:
@@ -1230,7 +1230,8 @@ namespace bx
|
||||
|
||||
int32_t vsnprintf(char* _out, int32_t _max, const char* _format, va_list _argList)
|
||||
{
|
||||
if (0 < _max)
|
||||
if ( 0 < _max
|
||||
&& NULL != _out)
|
||||
{
|
||||
StaticMemoryBlockWriter writer(_out, uint32_t(_max) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user