mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
b9ab864eec
commit
f06d0009ff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user