[vlc-commits] keystore: print the casted uint16_t port as a 16 bits unsigned
Steve Lhomme
git at videolan.org
Wed Jul 11 15:35:24 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 11 15:31:01 2018 +0200| [ff278aa3a3160ba30273fac717d5db8b7dd4a193] | committer: Steve Lhomme
keystore: print the casted uint16_t port as a 16 bits unsigned
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff278aa3a3160ba30273fac717d5db8b7dd4a193
---
src/misc/keystore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/keystore.c b/src/misc/keystore.c
index efedacf1f5..62d1822b19 100644
--- a/src/misc/keystore.c
+++ b/src/misc/keystore.c
@@ -247,7 +247,7 @@ protocol_set_port(const vlc_url_t *p_url, char *psz_port)
}
if (i_port != -1)
{
- sprintf(psz_port, "%u", (uint16_t) i_port);
+ sprintf(psz_port, "%" PRIu16, (uint16_t) i_port);
return true;
}
return false;
More information about the vlc-commits
mailing list