diff options
-rw-r--r-- | src/script/api/script_object.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/api/script_object.cpp b/src/script/api/script_object.cpp index f56bce0c0..a4c4549be 100644 --- a/src/script/api/script_object.cpp +++ b/src/script/api/script_object.cpp @@ -239,6 +239,7 @@ ScriptObject::ActiveInstance::~ActiveInstance() { char buffer[64]; ::GetString(buffer, string, lastof(buffer)); + ::str_validate(buffer, lastof(buffer), SVS_NONE); return ::strdup(buffer); } |