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:
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
Block a user