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
No related branches found
No related tags found
No related merge requests found
...@@ -231,8 +231,8 @@ std::string ...@@ -231,8 +231,8 @@ std::string
sip_strerror(pj_status_t code) sip_strerror(pj_status_t code)
{ {
char err_msg[PJ_ERR_MSG_SIZE]; char err_msg[PJ_ERR_MSG_SIZE];
pj_strerror(code, err_msg, sizeof err_msg); auto ret = pj_strerror(code, err_msg, sizeof err_msg);
return std::string {err_msg}; return std::string {ret.ptr, ret.ptr+ret.slen};
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment