cwText.cpp : Assert that v is non-null on call to toText().
This commit is contained in:
parent
0f4db7e556
commit
a94fbf8996
@ -149,6 +149,8 @@ unsigned cw::toText( char* buf, unsigned bufN, double v )
|
|||||||
|
|
||||||
unsigned cw::toText( char* buf, unsigned bufN, const char* v )
|
unsigned cw::toText( char* buf, unsigned bufN, const char* v )
|
||||||
{
|
{
|
||||||
|
assert( v != nullptr );
|
||||||
|
|
||||||
unsigned sn = strlen(v) + 1;
|
unsigned sn = strlen(v) + 1;
|
||||||
|
|
||||||
// bufN must be greater than the length of v[]
|
// bufN must be greater than the length of v[]
|
||||||
|
Loading…
Reference in New Issue
Block a user