rem: memcpy(&packet->cmd, &data[2], 2); packet->cmd = BSWAP16(packet->cmd);
add: memcpy(&cmd, &data[2], 2); packet->cmd = BSWAP16(cmd);
context: OpnPacket *opn_packet_unserialize(uint8_t *data, uint16_t size){	OpnPacket *packet;	assert(data);	assert(size >= OPN_PACKET_HEADER_LEN);	if (!(packet = opn_packet_new()))		return NULL;	memcpy(&packet->cmd, &data[2], 2);	packet->cmd = BSWAP16(packet->cmd);		if ((size -= OPN_PACKET_HEADER_LEN)) {		string_appendu(packet->data, &data[OPN_PACKET_HEADER_LEN], size);		packet->read = packet->data->str;	}	return packet;}