summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/gaim/files/gaim-1.4.0-libgg-mem.patch')
-rw-r--r--net-im/gaim/files/gaim-1.4.0-libgg-mem.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-im/gaim/files/gaim-1.4.0-libgg-mem.patch b/net-im/gaim/files/gaim-1.4.0-libgg-mem.patch
new file mode 100644
index 000000000000..48887b3262b4
--- /dev/null
+++ b/net-im/gaim/files/gaim-1.4.0-libgg-mem.patch
@@ -0,0 +1,16 @@
+--- libgg.c.orig 2005-07-19 17:35:24.000000000 +0200
++++ libgg.c 2005-07-19 17:39:05.000000000 +0200
+@@ -1086,8 +1086,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;