Andrew,
/* Vendor Identification */
>>> strncpy(&inqdata[16], "RAID controller ", 16);
That strncpy() will indeed fail to copy the trailing null, but it
looks
like that null isn't appropriate in the inquiry data.
Correct. These protocol strings are fixed-length / space-padded.
I.e. not null-terminated.
--
Martin K. Petersen Oracle Linux Engineering