* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
- * © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
*/
#include <string.h>
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);