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
1 changed files with 1 additions and 1 deletions

View File

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