diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-10-13 18:56:44 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:18:37 +0200 |
commit | f06d0009ff2eb5a4a35edde69700a29b684840c8 (patch) | |
tree | 18f27cfb053ccb9b8cd243d5cd82ba0543581adf /stream | |
parent | b9ab864eecc5ec19c1716db4e5015979bc197c9e (diff) | |
download | mpv-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')
-rw-r--r-- | stream/librtsp/rtsp_rtp.c | 2 |
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; |