Fixed CString bug
This commit is contained in:
parent
5ea3af0b2b
commit
7083c898f0
|
@ -32,7 +32,8 @@ public:
|
|||
return;
|
||||
}
|
||||
Grow(strlen(d));
|
||||
strcpy(v, d);
|
||||
if (v)
|
||||
strcpy(v, d);
|
||||
}
|
||||
|
||||
void clear()
|
||||
|
@ -70,6 +71,8 @@ public:
|
|||
private:
|
||||
void Grow(int d)
|
||||
{
|
||||
if (d<1)
|
||||
return;
|
||||
if (d > mSize)
|
||||
{
|
||||
char *t = new char[d+1];
|
||||
|
|
Loading…
Reference in New Issue
Block a user