mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rtmpproto: Use av_strlcat instead of strncat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Fixes: [FFmpeg-devel] rtmpproto compile error Similar patch: [FFmpeg-devel] [PATCH] call to strncat replaced with av_strlcat to avoid compile issue with systems implementing strncat via strcat.
This commit is contained in:
parent
10ac70d249
commit
f0615557e0
@ -2185,7 +2185,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