mirror of https://git.ffmpeg.org/ffmpeg.git
rtspdec: use av_strlcpy for writing into fixed size buffer
Fixes CID231347.
This commit is contained in:
parent
f1de23faaa
commit
d5ef9354ce
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue