Ignore:
Timestamp:
Jul 17, 2017, 4:31:51 AM (8 years ago)
Author:
David Azarewicz
Message:

Added MSI support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.c

    r186 r190  
    11031103
    11041104      pPtr->AdapterDevBus = AI_DEVBUS_ST506 | AI_DEVBUS_32BIT;
    1105       sprintf(pPtr->AdapterName, "AHCI_%d", dta);
     1105      snprintf(pPtr->AdapterName, sizeof(pPtr->AdapterName), "AHCI_%d", dta);
    11061106
    11071107      if (!ad_info->port_scan_done)
     
    11621162      /* set adapter name and bus type to mimic a SCSI controller */
    11631163      pPtr->AdapterDevBus = AI_DEVBUS_SCSI_2 | AI_DEVBUS_16BIT;
    1164       sprintf(pPtr->AdapterName, "AHCI_SCSI_0");
     1164      snprintf(pPtr->AdapterName, sizeof(pPtr->AdapterName), "AHCI_SCSI_0");
    11651165
    11661166      /* add all ATAPI units to be emulated by this virtual adaper */
Note: See TracChangeset for help on using the changeset viewer.