mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fixed CString bug
This commit is contained in:
parent
5ea3af0b2b
commit
7083c898f0
@ -32,6 +32,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Grow(strlen(d));
|
Grow(strlen(d));
|
||||||
|
if (v)
|
||||||
strcpy(v, d);
|
strcpy(v, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,6 +71,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
void Grow(int d)
|
void Grow(int d)
|
||||||
{
|
{
|
||||||
|
if (d<1)
|
||||||
|
return;
|
||||||
if (d > mSize)
|
if (d > mSize)
|
||||||
{
|
{
|
||||||
char *t = new char[d+1];
|
char *t = new char[d+1];
|
||||||
|
Loading…
Reference in New Issue
Block a user