aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-11-05 11:01:24 +0200
committerMartin Storsjö <martin@martin.st>2012-11-05 15:37:09 +0200
commitd578f94746dd85dd066abb8bc6bd3c5825a4f759 (patch)
tree9c56dfc7f9367e6337e702fa32f1df662ceb7a28 /libavformat/rtmpproto.c
parentb3fab1f2cd22bfaee95831af57a65f803f03083c (diff)
downloadffmpeg-d578f94746dd85dd066abb8bc6bd3c5825a4f759.tar.gz
rtmp: Use av_strlcat instead of strncat
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c2
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) {