trick comm byteswap functions can't handle sizes above 65536 bytes

fix indentation while I'm here.

refs #187
This commit is contained in:
Alex Lin 2016-04-19 09:19:18 -05:00
parent 8633facc86
commit fad36fc544

View File

@ -46,7 +46,7 @@ int tc_read_byteswap(TCDevice * device, char *buffer, int size, ATTRIBUTES * att
TRICK_GET_BYTE_ORDER(local_byteorder)
if (device->byte_info[TC_BYTE_ORDER_NDX] != local_byteorder) {
if (device->byte_info[TC_BYTE_ORDER_NDX] != local_byteorder) {
memset(swap_buffer->swap_space, 0, (size_t) size);
ret = tc_read(device, (char *) swap_buffer->swap_space, size);
trick_bswap_buffer(buffer, swap_buffer->swap_space, attr, 0);