[MPlayer-cvslog] r35344 - trunk/stream/librtsp/rtsp_rtp.c
reimar
subversion at mplayerhq.hu
Mon Nov 5 21:28:39 CET 2012
Author: reimar
Date: Mon Nov 5 21:28:39 2012
New Revision: 35344
Log:
Use more appropriate value for memcpy length.
Modified:
trunk/stream/librtsp/rtsp_rtp.c
Modified: trunk/stream/librtsp/rtsp_rtp.c
==============================================================================
--- trunk/stream/librtsp/rtsp_rtp.c Mon Nov 5 21:26:12 2012 (r35343)
+++ trunk/stream/librtsp/rtsp_rtp.c Mon Nov 5 21:28:39 2012 (r35344)
@@ -262,7 +262,7 @@ rtcp_connect (int client_port, int serve
}
sin.sin_family = AF_INET;
- memcpy (&(sin.sin_addr.s_addr), hp->h_addr, sizeof (hp->h_addr));
+ memcpy (&(sin.sin_addr.s_addr), hp->h_addr, hp->h_length);
sin.sin_port = htons (server_port);
/* datagram socket */
More information about the MPlayer-cvslog
mailing list