[Pkg-telepathy-commits] [libnice] 41/265: stun: Fix format specifier for a size_t variable

Simon McVittie smcv at debian.org
Wed May 14 12:04:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit b80a67d51dc991140e263ed6b8e3de3cb01fbd52
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date:   Tue Dec 17 09:48:03 2013 +0000

    stun: Fix format specifier for a size_t variable
    
    This fix may not be entirely cross-platform, and I have been unable to
    test whether it is; making it cross-platform is made more difficult by
    the fact that the STUN code doesn’t use GLib.
    
    The PRIuPTR macro was defined in POSIX:2004, and later in C99.
    http://pubs.opengroup.org/onlinepubs/009696799/basedefs/inttypes.h.html
---
 stun/stunagent.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/stun/stunagent.c b/stun/stunagent.c
index 0943a02..40e4d15 100644
--- a/stun/stunagent.c
+++ b/stun/stunagent.c
@@ -46,6 +46,7 @@
 
 #include <string.h>
 #include <stdlib.h>
+#include <inttypes.h>
 
 
 static bool stun_agent_is_unknown (StunAgent *agent, uint16_t type);
@@ -80,7 +81,7 @@ bool stun_agent_default_validater (StunAgent *agent,
     stun_debug_bytes (username, username_len);
     stun_debug ("' (%d) with '", username_len);
     stun_debug_bytes (val[i].username, val[i].username_len);
-    stun_debug ("' (%d) : %d\n",
+    stun_debug ("' (%" PRIuPTR ") : %d\n",
         val[i].username_len, memcmp (username, val[i].username, username_len));
     if (username_len == val[i].username_len &&
         memcmp (username, val[i].username, username_len) == 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list