summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-12 00:59:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-12 00:59:42 +0000
commit2fc8ea249f325c2017137847bc1a565b77f40f11 (patch)
tree34f0783859f7637871650292705b657650f30800 /libavformat/udp.c
parent0ecca7a49f8e254c12a3a1de048d738bfbb614c6 (diff)
dissallow sprintf
Originally committed as revision 3823 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
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] != '?')) {