changeset 35250:7a93fe8c6956

Use more appropriate value for memcpy length.
author reimar
date Mon, 05 Nov 2012 20:28:39 +0000
parents 4f9bc9acf17e
children c8d891e708dc
files stream/librtsp/rtsp_rtp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 */