mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
dissallow sprintf
Originally committed as revision 3823 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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] != '?')) {
|
||||
|
Reference in New Issue
Block a user