Skip to content
Snippets Groups Projects
Commit bd6586e3 authored by Mark Michelson's avatar Mark Michelson
Browse files

Use some magic constants to get the right size

for this sscanf statement. Thanks Richard!



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 4e67fdd3
No related branches found
No related tags found
No related merge requests found
...@@ -7309,7 +7309,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action ...@@ -7309,7 +7309,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
ast_log(LOG_WARNING, "SDP syntax error in o= line\n"); ast_log(LOG_WARNING, "SDP syntax error in o= line\n");
return -1; return -1;
} }
if (!sscanf(token, "%llu", (unsigned long long *) &rua_version)) { if (!sscanf(token, "%" __PRI64_PREFIX "u", &rua_version)) {
ast_log(LOG_WARNING, "SDP syntax error in o= line version\n"); ast_log(LOG_WARNING, "SDP syntax error in o= line version\n");
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment