gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
356 stars 202 forks source link

lsusb: Fix buffer size copy/paste error #122

Closed tchebb closed 3 years ago

tchebb commented 3 years ago

When I added these calls, I mistakenly passed them all the size of the vendor buffer instead of the buffers they actually fill. As it happens, all the sizes are the same, so there's no correctness issue, but we should still fix the issue for code clarity and ease of modification.

gregkh commented 3 years ago

Thanks for the fix!