summaryrefslogtreecommitdiffstats
path: root/stream/librtsp
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-10-13 18:56:44 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:18:37 +0200
commitf06d0009ff2eb5a4a35edde69700a29b684840c8 (patch)
tree18f27cfb053ccb9b8cd243d5cd82ba0543581adf /stream/librtsp
parentb9ab864eecc5ec19c1716db4e5015979bc197c9e (diff)
downloadmpv-f06d0009ff2eb5a4a35edde69700a29b684840c8.tar.bz2
mpv-f06d0009ff2eb5a4a35edde69700a29b684840c8.tar.xz
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
Diffstat (limited to 'stream/librtsp')
-rw-r--r--stream/librtsp/rtsp_rtp.c2
1 files changed, 1 insertions, 1 deletions
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;