Commit 34b65982 authored by Frederick Zhang's avatar Frederick Zhang

explicitly specifying bstr len

parent 0433c6df
Pipeline #332 passed with stage
in 45 seconds
......@@ -66,7 +66,7 @@ zval * bstr::to_array(const bool include_meta) const {
} else {
char *_data_data = (char *)emalloc(_value.length() + 1);
strcpy(_data_data, _value.c_str());
ZVAL_STRING(zv, _data_data);
ZVAL_STRINGL(zv, _data_data, _value.length());
efree(_data_data);
}
return zv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment