diff options
author | Mark Michelson <mmichelson@digium.com> | 2008-11-21 01:14:20 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2008-11-21 01:14:20 +0000 |
commit | bd6586e3d77ba2322905f874f7d6f2458d39c8cf (patch) | |
tree | 6d894c51ecb8167ecd2b8b4828fd3a27035b7cc2 | |
parent | 4e67fdd3f959a2bff186fd74bbee5f773979872c (diff) |
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
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6894829a0..0cffb9e96 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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"); 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"); return -1; } |