diff sdp.c @ 2422:f3a8f7d55bd1 libavformat

Fill the buffer with 0 before writing an SDP in it
author lucabe
date Mon, 03 Sep 2007 09:00:40 +0000
parents 2adc9f64ecfb
children 776b5c2a1bf1
line wrap: on
line diff
--- a/sdp.c	Mon Sep 03 07:56:26 2007 +0000
+++ b/sdp.c	Mon Sep 03 09:00:40 2007 +0000
@@ -175,6 +175,7 @@
     int i, j, port, ttl;
     char dst[32];
 
+    memset(buff, 0, size);
     memset(&s, 0, sizeof(struct sdp_session_level));
     s.user = "-";
     s.src_addr = "127.0.0.1";    /* FIXME: Properly set this */