1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

rtspdec: use av_strlcpy for writing into fixed size buffer

Fixes CID231347.
This commit is contained in:
Janne Grunau 2012-10-09 21:03:40 +02:00
parent f1de23faaa
commit d5ef9354ce

View File

@ -436,7 +436,7 @@ static inline int parse_command_line(AVFormatContext *s, const char *line,
if (*methodcode == ANNOUNCE) {
av_log(s, AV_LOG_INFO,
"Updating control URI to %s\n", uri);
strcpy(rt->control_uri, uri);
av_strlcpy(rt->control_uri, uri, sizeof(rt->control_uri));
}
}