File ibsim-fix_type_punning.patch of Package ibsim.19343

---
 ibsim/ibsim.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: ibsim/ibsim.c
===================================================================
--- ibsim/ibsim.c.orig	2016-03-10 10:03:22.213892431 +0100
+++ ibsim/ibsim.c	2016-03-10 14:50:39.775392312 +0100
@@ -345,7 +345,9 @@ static void set_issm(Port *port, unsigne
 
 static int sim_ctl_set_issm(Client * cl, struct sim_ctl * ctl)
 {
-	int issm = *(int *)ctl->data;
+	int issm;
+
+	memcpy (&issm, ctl->data, sizeof(int));
 
 	VERB("set issm %d port %" PRIx64, issm, cl->port->portguid);
 	cl->issm = issm;
openSUSE Build Service is sponsored by