On Mon, Nov 05, 2012 at 12:02:41PM +0200, Martin Storsjö wrote:
> On Mon, 5 Nov 2012, Kostya Shishkov wrote:
> 
> >On Mon, Nov 05, 2012 at 11:13:33AM +0200, Martin Storsjö wrote:
> >>---
> >> 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) {
> >>--
> >
> >why the difference in the size?
> 
> The size argument to strncat is the max number of chars appended,
> while for av_strlcat is the full size of the buffer.

Ah, looks OK then.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to