mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-14 03:04:53 +00:00
rtmp: Use av_strlcat instead of strncat
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
b3fab1f2cd
commit
d578f94746
@ -2188,7 +2188,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
|
|||||||
} else {
|
} else {
|
||||||
rt->playpath[0] = 0;
|
rt->playpath[0] = 0;
|
||||||
}
|
}
|
||||||
strncat(rt->playpath, fname, PLAYPATH_MAX_LENGTH - 5);
|
av_strlcat(rt->playpath, fname, PLAYPATH_MAX_LENGTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rt->tcurl) {
|
if (!rt->tcurl) {
|
||||||
|
Loading…
Reference in New Issue
Block a user