1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2024-11-13 18:00:49 +01:00

Fix compiler warning about conversion type in snprintf

This commit is contained in:
icex2 2022-06-16 00:10:50 +02:00
parent 485c4d0ad7
commit 0cd85083f6

View File

@ -193,7 +193,7 @@ static HRESULT usbmem_write(struct irp *irp)
usbmem_response[2] = ~usbmem_response[1];
if (usbmem_state[target_device_id].buffer_frame == 0) {
snprintf(usbmem_response + 4, sizeof(usbmem_response) - 5, "%d ", usbmem_state[target_device_id].buffer_len);
snprintf(usbmem_response + 4, sizeof(usbmem_response) - 5, "%Iu ", usbmem_state[target_device_id].buffer_len);
} else {
size_t len = sizeof(usbmem_response) - 5;