|
@@ -536,7 +536,7 @@ static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip)
|
|
|
|
|
|
if (sendbytes > 8) {
|
|
if (sendbytes > 8) {
|
|
memcpy(buf, inquiry_buf, 8);
|
|
memcpy(buf, inquiry_buf, 8);
|
|
- memcpy(buf + 8, inquiry_string, sendbytes - 8);
|
|
|
|
|
|
+ strncpy(buf + 8, inquiry_string, sendbytes - 8);
|
|
if (pro_formatter_flag) {
|
|
if (pro_formatter_flag) {
|
|
/* Additional Length */
|
|
/* Additional Length */
|
|
buf[4] = 0x33;
|
|
buf[4] = 0x33;
|