blob: c6ad1d130dbc521e8029447ed4e35b5aaa268a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ae,v 1.3 2005/08/05 14:33:53 salo Exp $
Fix for CAN-2005-2370, from Gaim CVS.
--- src/protocols/gg/libgg.c.orig 2005-03-02 12:53:57.000000000 +0100
+++ src/protocols/gg/libgg.c 2005-08-05 15:38:42.000000000 +0200
@@ -1098,8 +1098,11 @@
e->event.status60.descr = buf;
- if (len > 4 && p[h->length - 5] == 0)
- e->event.status60.time = *((int*) (p + h->length - 4));
+ if (len > 4 && p[h->length - 5] == 0) {
+ uint32_t t;
+ memcpy(&t, p + h->length - 4, sizeof(uint32_t));
+ e->event.status60.time = t;
+ }
}
break;
|