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 2010-10-13 18:56:44 +00:00 committed by Uoti Urpala
parent b9ab864eec
commit f06d0009ff
1 changed files with 1 additions and 1 deletions

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;