diff options
author | Martin Storsjö <martin@martin.st> | 2012-11-05 11:01:24 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-11-05 15:37:09 +0200 |
commit | d578f94746dd85dd066abb8bc6bd3c5825a4f759 (patch) | |
tree | 9c56dfc7f9367e6337e702fa32f1df662ceb7a28 | |
parent | b3fab1f2cd22bfaee95831af57a65f803f03083c (diff) | |
download | ffmpeg-d578f94746dd85dd066abb8bc6bd3c5825a4f759.tar.gz |
rtmp: Use av_strlcat instead of strncat
Signed-off-by: Martin Storsjö <martin@martin.st>
-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 3ab2e57e62..8924fb3c19 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) { |