summaryrefslogtreecommitdiffstats
path: root/stream/librtsp/rtsp_rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/librtsp/rtsp_rtp.c')
-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;