diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index a90f36c280..b95f238d26 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -121,7 +121,7 @@ struct addrinfo* udp_ipv6_resolve_host(const char *hostname, int port, int type, const char *node = 0, *service = 0; if (port > 0) { - sprintf(sport, "%d", port); + snprintf(sport, sizeof(sport), "%d", port); service = sport; } if ((hostname) && (hostname[0] != '\0') && (hostname[0] != '?')) { |