Mercurial > pidgin
comparison src/protocols/gg/libgg.c @ 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 | 088633feb846 |
children | 64895571248f |
comparison
equal
deleted
inserted
replaced
10647:7d13c04387ad | 10648:78720741ae3d |
---|---|
1 /* $Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $ */ | 1 /* $Id: libgg.c 12166 2005-03-02 11:54:08Z nosnilmot $ */ |
2 | 2 |
3 /* | 3 /* |
4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>, | 4 * (C) Copyright 2001 Wojtek Kaniewski <wojtekka@irc.pl>, |
5 * Robert J. Woźny <speedy@ziew.org> | 5 * Robert J. Woźny <speedy@ziew.org> |
6 * | 6 * |
68 | 68 |
69 static char rcsid[] | 69 static char rcsid[] |
70 #ifdef __GNUC__ | 70 #ifdef __GNUC__ |
71 __attribute__ ((unused)) | 71 __attribute__ ((unused)) |
72 #endif | 72 #endif |
73 = "$Id: libgg.c 11615 2004-12-16 03:50:54Z faceprint $"; | 73 = "$Id: libgg.c 12166 2005-03-02 11:54:08Z nosnilmot $"; |
74 | 74 |
75 #endif | 75 #endif |
76 | 76 |
77 /* | 77 /* |
78 * fix32() // funkcja wewnętrzna | 78 * fix32() // funkcja wewnętrzna |
1053 | 1053 |
1054 gg_debug(GG_DEBUG_MISC, "-- received a status change\n"); | 1054 gg_debug(GG_DEBUG_MISC, "-- received a status change\n"); |
1055 | 1055 |
1056 if (h->length >= sizeof(*s)) { | 1056 if (h->length >= sizeof(*s)) { |
1057 e->type = GG_EVENT_STATUS; | 1057 e->type = GG_EVENT_STATUS; |
1058 memcpy(&e->event.status, p, h->length); | 1058 memcpy(&e->event.status, p, sizeof(*s)); |
1059 e->event.status.uin = fix32(e->event.status.uin); | 1059 e->event.status.uin = fix32(e->event.status.uin); |
1060 e->event.status.status = fix32(e->event.status.status); | 1060 e->event.status.status = fix32(e->event.status.status); |
1061 } | 1061 } |
1062 break; | 1062 break; |
1063 } | 1063 } |