Skip to content
Snippets Groups Projects
Commit ea53b277 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

sip utils: use length for strerror

Change-Id: I5fca86eb620043998e7a41a2b7bca12642567376
parent dbda72c1
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment