if (n == -1)
return -1;
if (n == 0) {
- ELOG("IPC: received EOF instead of reply\n");
return -2;
}
}
walk += strlen(I3_IPC_MAGIC);
- *reply_length = *((uint32_t*)walk);
+ memcpy(reply_length, walk, sizeof(uint32_t));
walk += sizeof(uint32_t);
if (message_type != NULL)
- *message_type = *((uint32_t*)walk);
+ memcpy(message_type, walk, sizeof(uint32_t));
*reply = smalloc(*reply_length);