Use an unsigned char buf as input
Fix sign extension issue

Found by Coverity Scan
Allow shorter inquiry responses

It is perfectly valid to get a short inquiry response, some disks may
actually respond like that.
Merge commit 'cf2b2729143aa0553036bf6cc3cc5dc9f1664370'

Updating back after pushing commits made on diskscan tree