changeset 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 b08793768c30
children 91b61b76eb8c
files sdp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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 */