changeset 10648:78720741ae3d

[gaim-migrate @ 12166] This should fix Fedora bug #149984, thanks to a helpful reporter who valgrinded for us. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 02 Mar 2005 11:54:08 +0000
parents 7d13c04387ad
children 3353656c119e
files src/protocols/gg/libgg.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/libgg.c	Wed Mar 02 04:36:19 2005 +0000
+++ b/src/protocols/gg/libgg.c	Wed Mar 02 11:54:08 2005 +0000
@@ -1,4 +1,4 @@
-/* $Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $ */
+/* $Id: libgg.c 12166 2005-03-02 11:54:08Z nosnilmot $ */
 
 /*
  *  (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>,
@@ -70,7 +70,7 @@
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-= "$Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $";
+= "$Id: libgg.c 12166 2005-03-02 11:54:08Z nosnilmot $";
 
 #endif 
 
@@ -1055,7 +1055,7 @@
 
 		if (h->length >= sizeof(*s)) {
 			e->type = GG_EVENT_STATUS;
-			memcpy(&e->event.status, p, h->length);
+			memcpy(&e->event.status, p, sizeof(*s));
 			e->event.status.uin = fix32(e->event.status.uin);
 			e->event.status.status = fix32(e->event.status.status);
 		}