[vlc-devel] commit: SAP SD: Use SCN in scanf instrad of PRI (Jean-Baptiste Kempf )

git version control git at videolan.org
Sat Dec 26 19:48:01 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 26 19:39:59 2009 +0100| [df509ccf56baa3e79a885f017aa97d205f2feabc] | committer: Jean-Baptiste Kempf 

SAP SD: Use SCN in scanf instrad of PRI

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df509ccf56baa3e79a885f017aa97d205f2feabc
---

 modules/services_discovery/sap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index a065ac4..faf15f4 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1250,7 +1250,7 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
                     goto error;
                 }
 
-                if ((sscanf (data, "%63s %"PRIu64" %"PRIu64" IN IP%u %1023s",
+                if ((sscanf (data, "%63s %"SCNu64" %"SCNu64" IN IP%u %1023s",
                              p_sdp->username, &p_sdp->session_id,
                              &p_sdp->session_version, &p_sdp->orig_ip_version,
                              p_sdp->orig_host) != 5)




More information about the vlc-devel mailing list