changeset 26286:d8a7c7d9ac8a

Zero out the proper size for the PurpleMediaPrivate structure.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Tue, 17 Mar 2009 10:13:10 +0000
parents b1c4fcc5b814
children 26cf297796a5
files libpurple/media.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Tue Mar 17 10:11:18 2009 +0000
+++ b/libpurple/media.c	Tue Mar 17 10:13:10 2009 +0000
@@ -260,7 +260,7 @@
 purple_media_init (PurpleMedia *media)
 {
 	media->priv = PURPLE_MEDIA_GET_PRIVATE(media);
-	memset(media->priv, 0, sizeof(media->priv));
+	memset(media->priv, 0, sizeof(*media->priv));
 }
 
 static void