Commit cb1ba72f authored by Guillaume Roguez's avatar Guillaume Roguez

fixup for sip_utils

fix for patch:
0f524801 PJSIP support to std::error_code and std::system_error

pj_strerror crashes on due to wrong given string size.

Change-Id: I8d68b885ce0d587b27e8b361c9ad60019ed355fb
parent 0f524801
......@@ -49,7 +49,7 @@ PjsipErrorCategory::message( int condition ) const
{
std::string err_msg;
err_msg.reserve(PJ_ERR_MSG_SIZE);
err_msg.resize(pj_strerror(condition, &err_msg[0], err_msg.size()).slen);
err_msg.resize(pj_strerror(condition, &err_msg[0], err_msg.capacity()).slen);
return err_msg;
}
......
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