From f06d0009ff2eb5a4a35edde69700a29b684840c8 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 13 Oct 2010 18:56:44 +0000 Subject: rtsp_rtp.c: Replace snprintf by av_strlcpy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Frédéric Marchal [fmarchal perso be]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32487 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/librtsp/rtsp_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c index 0a8eed3392..813e7cf7d2 100644 --- a/stream/librtsp/rtsp_rtp.c +++ b/stream/librtsp/rtsp_rtp.c @@ -218,7 +218,7 @@ parse_destination (const char *line) len = strlen (parse1) - strlen (parse2) - strlen (RTSP_SETUP_DESTINATION) + 1; dest = (char *) malloc (len + 1); - snprintf (dest, len, parse1 + strlen (RTSP_SETUP_DESTINATION)); + av_strlcpy (dest, parse1 + strlen (RTSP_SETUP_DESTINATION), len); free (line_copy); return dest; -- cgit v1.2.3