diff options
author | Marty Rosenberg | 2010-08-27 01:20:00 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-10-04 00:36:39 +0200 |
commit | 79f05179a4ac8b5d9a19d47993370f8508032319 (patch) | |
tree | ae387280c9d470b29f6238ae972f7d3d4502ad8f /src | |
parent | ee07a8bedd9694a42d188a30ac81fe0c74daff69 (diff) | |
download | libimobiledevice-79f05179a4ac8b5d9a19d47993370f8508032319.tar.gz libimobiledevice-79f05179a4ac8b5d9a19d47993370f8508032319.tar.bz2 |
afc: fix packet communication on big endian machines
Diffstat (limited to 'src')
-rw-r--r-- | src/afc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -176,6 +176,7 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, const char *data, ui AFCPacket_to_LE(client->afc_packet); sent = 0; idevice_connection_send(client->connection, (void*)client->afc_packet, sizeof(AFCPacket), &sent); + AFCPacket_from_LE(client->afc_packet); if (sent == 0) { /* FIXME: should this be handled as success?! */ return AFC_E_SUCCESS; @@ -210,6 +211,7 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, const char *data, ui AFCPacket_to_LE(client->afc_packet); sent = 0; idevice_connection_send(client->connection, (void*)client->afc_packet, sizeof(AFCPacket), &sent); + AFCPacket_from_LE(client->afc_packet); if (sent == 0) { return AFC_E_SUCCESS; } |