Commit 631f62cd authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for AMF name

parent 5d1652e3
......@@ -423,8 +423,8 @@ void conv::string_2_octet_string(
// o_str.buf = strcpy(new char[str.length() + 1], str.c_str());
// memcpy(o_str.buf, str.c_str(), str.size());
std::copy(str.begin(), str.end(), o_str.buf);
o_str.buf[str.length()] = '\0';
o_str.size = str.length() + 1;
o_str.size = str.length();
o_str.buf[str.length()] = '\0'; // just in case
}
//------------------------------------------------------------------------------
......
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