提交 1786dc15 编写于 作者: B Blue Swirl

Use pstrcpy to avoid OpenBSD linker warnings

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 fc0d96b4
......@@ -834,7 +834,7 @@ static int vdi_create(const char *filename, QEMUOptionParameter *options)
bmap_size = ((bmap_size + SECTOR_SIZE - 1) & ~(SECTOR_SIZE -1));
memset(&header, 0, sizeof(header));
strcpy(header.text, VDI_TEXT);
pstrcpy(header.text, sizeof(header.text), VDI_TEXT);
header.signature = VDI_SIGNATURE;
header.version = VDI_VERSION_1_1;
header.header_size = 0x180;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册