# HG changeset patch # User Stu Tomlinson # Date 1109764448 0 # Node ID 78720741ae3daa497553e5c683d20d45e57bc725 # Parent 7d13c04387adf50be9cf95dcb2ed1bb3fc4d272d [gaim-migrate @ 12166] This should fix Fedora bug #149984, thanks to a helpful reporter who valgrinded for us. committer: Tailor Script diff -r 7d13c04387ad -r 78720741ae3d src/protocols/gg/libgg.c --- 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 , @@ -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); }