[FFmpeg-cvslog] rtmp: Use av_strlcat instead of strncat
Martin Storsjö
git at videolan.org
Mon Nov 5 22:40:23 CET 2012
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Nov 5 11:01:24 2012 +0200| [d578f94746dd85dd066abb8bc6bd3c5825a4f759] | committer: Martin Storsjö
rtmp: Use av_strlcat instead of strncat
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d578f94746dd85dd066abb8bc6bd3c5825a4f759
---
libavformat/rtmpproto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 3ab2e57..8924fb3 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -2188,7 +2188,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) {
More information about the ffmpeg-cvslog
mailing list