Changeset 102565 in vbox for trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp
- Timestamp:
- Dec 11, 2023 9:36:43 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp
r102544 r102565 722 722 pThis->u.CfgFile.uCfgItem = RT_H2BE_U16(pEntry->Cfg.uCfgItem); 723 723 pThis->u.CfgFile.u16Rsvd = 0; 724 strncpy(pThis->u.CfgFile.szFilename, pEntry->Cfg.pszItem, sizeof(pThis->u.CfgFile.szFilename) );724 strncpy(pThis->u.CfgFile.szFilename, pEntry->Cfg.pszItem, sizeof(pThis->u.CfgFile.szFilename) - 1); 725 725 pThis->u.CfgFile.szFilename[QEMU_FW_CFG_ITEM_FILE_NAME_MAX] = '\0'; 726 726
Note:
See TracChangeset
for help on using the changeset viewer.