Commit d5ef9354 authored by Janne Grunau's avatar Janne Grunau
Browse files

rtspdec: use av_strlcpy for writing into fixed size buffer

Fixes CID231347.
parent f1de23fa
......@@ -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));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment