VirtualBox

Changeset 102544 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 8, 2023 2:45:15 PM (14 months ago)
Author:
vboxsync
Message:

Devices/DevQemuFwCfg: Fixed ASAN warning (as error).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp

    r100173 r102544  
    722722        pThis->u.CfgFile.uCfgItem = RT_H2BE_U16(pEntry->Cfg.uCfgItem);
    723723        pThis->u.CfgFile.u16Rsvd  = 0;
    724         strncpy(&pThis->u.CfgFile.szFilename[0], pEntry->Cfg.pszItem, sizeof(pThis->u.CfgFile.szFilename));
     724        strncpy(pThis->u.CfgFile.szFilename, pEntry->Cfg.pszItem, sizeof(pThis->u.CfgFile.szFilename));
    725725        pThis->u.CfgFile.szFilename[QEMU_FW_CFG_ITEM_FILE_NAME_MAX] = '\0';
    726726
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette