diff options
author | Martin Storsjö <martin@martin.st> | 2012-11-05 11:13:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-05 21:47:43 +0100 |
commit | f0615557e03518b2fdc6d036ba29031a90646011 (patch) | |
tree | d616e8f82b92c24e8eacc44c5ed8bdbaed2d19bd | |
parent | 10ac70d249c76303da02a049ca19d1e62b77d251 (diff) | |
download | ffmpeg-f0615557e03518b2fdc6d036ba29031a90646011.tar.gz |
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.
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 1d00cbb43f..72462cf703 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -2185,7 +2185,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags) } else { rt->playpath[0] = 0; } - strncat(rt->playpath, fname, PLAYPATH_MAX_LENGTH - 5); + av_strlcat(rt->playpath, fname, PLAYPATH_MAX_LENGTH); } if (!rt->tcurl) { |