summaryrefslogtreecommitdiff
path: root/stun
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-17 09:48:03 +0000
committerOlivier Crête <olivier.crete@collabora.com>2014-01-02 13:43:36 -0500
commitb80a67d51dc991140e263ed6b8e3de3cb01fbd52 (patch)
tree617a3be0d796ece68b76a9468fc9b17434196859 /stun
parentc3011d09b92b7f9f9a5d93eb022bcd19914b0798 (diff)
downloadlibnice-b80a67d51dc991140e263ed6b8e3de3cb01fbd52.tar.gz
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
Diffstat (limited to 'stun')
-rw-r--r--stun/stunagent.c3
1 files changed, 2 insertions, 1 deletions
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) {