src/protocols/gg/libgg.c

changeset 11157
e22131a4b997
parent 11105
842fa517e08c
child 11202
d5aa331fe940
--- a/src/protocols/gg/libgg.c	Mon Jul 25 19:36:44 2005 +0000
+++ b/src/protocols/gg/libgg.c	Mon Jul 25 21:20:14 2005 +0000
@@ -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;

mercurial