Merge pull request #3 from c72578/2019-05-28_use_memset_instead_of_bzero

Use memset() instead of bzero()
This commit is contained in:
K.Cima 2019-05-29 16:18:11 +09:00 committed by GitHub
commit 2b05d739e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,7 @@ void control_transfer(libusb_device_handle *dev, const char *pquestion) {
void interrupt_read(libusb_device_handle *dev, unsigned char *answer) { void interrupt_read(libusb_device_handle *dev, unsigned char *answer) {
int r,s,i; int r,s,i;
bzero(answer, reqIntLen); memset(answer, 0, reqIntLen);
s = libusb_interrupt_transfer(dev, endpoint_Int_in, answer, reqIntLen, &r, timeout); s = libusb_interrupt_transfer(dev, endpoint_Int_in, answer, reqIntLen, &r, timeout);
if(r != reqIntLen) { if(r != reqIntLen) {