mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
trick comm byteswap functions can't handle sizes above 65536 bytes
fix indentation while I'm here. refs #187
This commit is contained in:
parent
8633facc86
commit
fad36fc544
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user