[FFmpeg-devel] [PATCH] call to strncat replaced with av_strlcat to avoid compile issue with systems implementing strncat via strcat.

Jean First jeanfirst at gmail.com
Mon Nov 5 21:30:22 CET 2012


On Mon Nov 05 2012 21:50:06 GMT+0100 (CET), Leon van Stuivenberg wrote:
> ---
>   libavformat/rtmpproto.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
> index 1d00cbb..e729ab2 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 - 5);
>       }
>   
>       if (!rt->tcurl) {

this just came up on another list 
http://comments.gmane.org/gmane.comp.video.libav.devel/38181


More information about the ffmpeg-devel mailing list