Commit ea53b277 authored by Adrien Béraud's avatar Adrien Béraud

sip utils: use length for strerror

Change-Id: I5fca86eb620043998e7a41a2b7bca12642567376
parent dbda72c1
......@@ -231,8 +231,8 @@ std::string
sip_strerror(pj_status_t code)
{
char err_msg[PJ_ERR_MSG_SIZE];
pj_strerror(code, err_msg, sizeof err_msg);
return std::string {err_msg};
auto ret = pj_strerror(code, err_msg, sizeof err_msg);
return std::string {ret.ptr, ret.ptr+ret.slen};
}
void
......
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