[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 1786dc1] Use pstrcpy to avoid OpenBSD linker warn
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 1786dc1] Use pstrcpy to avoid OpenBSD linker warnings |
Date: |
Sat, 15 Aug 2009 20:06:48 -0000 |
From: Blue Swirl <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
diff --git a/block/vdi.c b/block/vdi.c
index db3fe16..4ca8dcb 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 1786dc1] Use pstrcpy to avoid OpenBSD linker warnings,
Anthony Liguori <=