dissallow sprintf

Originally committed as revision 3823 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2005-01-12 00:59:42 +00:00
parent 0ecca7a49f
commit 2fc8ea249f
9 changed files with 16 additions and 13 deletions

View File

@ -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] != '?')) {