diff --git a/dlls/engine/CString.h b/dlls/engine/CString.h index 137be93f..c5e315bc 100755 --- a/dlls/engine/CString.h +++ b/dlls/engine/CString.h @@ -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];