mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Use pstrcpy to avoid OpenBSD linker warnings
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
fc0d96b4e3
commit
1786dc15ee
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue