diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 23:03:40 +0400 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 23:05:15 +0400 |
commit | d5ef9354ce014be28748f4624e969e96fd1f5ff5 (patch) | |
tree | 6c90a437e3395cec9fb1635f0917f4290613641b /libavformat/rtspdec.c | |
parent | f1de23faaa61ecf3706055f2da97f5b92aa07d9c (diff) |
rtspdec: use av_strlcpy for writing into fixed size buffer
Fixes CID231347.
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index a891837eb1..7476c45ba8 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -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)); } } |