rtsp_rtp.c: Replace snprintf by av_strlcpy

Patch by Frédéric Marchal [fmarchal perso be].

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32487 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar authored and Uoti Urpala committed 2010-11-02 04:18:37 +02:00
1 parent b9ab864eec
commit f06d0009ff
1 file changed
+1 -1
+1 -1
View File
@@ -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;