diff stream/librtsp/rtsp_rtp.c @ 35250:7a93fe8c6956

Use more appropriate value for memcpy length.
author reimar
date Mon, 05 Nov 2012 20:28:39 +0000
parents 126ce1e7f87b
children 05916e37848e
line wrap: on
line diff
--- a/stream/librtsp/rtsp_rtp.c	Mon Nov 05 20:26:12 2012 +0000
+++ b/stream/librtsp/rtsp_rtp.c	Mon Nov 05 20:28:39 2012 +0000
@@ -262,7 +262,7 @@
   }
 
   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 */