Changeset 2582d8f in mainline
- Timestamp:
- 2011-12-06T12:10:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5cfcc64
- Parents:
- f167f55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb_transfer_batch.c
rf167f55 r2582d8f 145 145 if (instance->callback_in) { 146 146 /* We care about the data and there are some to copy */ 147 const size_t safe_size = min(size, instance->buffer_size); 147 148 if (data) { 148 const size_t minsize = min(size, instance->buffer_size); 149 memcpy(instance->buffer, data, minsize); 149 memcpy(instance->buffer, data, safe_size); 150 150 } 151 151 instance->callback_in(instance->fun, error, 152 instance->transfered_size, instance->arg);152 safe_size, instance->arg); 153 153 } 154 154 }
Note:
See TracChangeset
for help on using the changeset viewer.