]> Git Repo - qemu.git/commitdiff
Use pstrcpy to avoid OpenBSD linker warnings
authorBlue Swirl <[email protected]>
Sat, 15 Aug 2009 11:33:58 +0000 (11:33 +0000)
committerBlue Swirl <[email protected]>
Sat, 15 Aug 2009 11:33:58 +0000 (11:33 +0000)
Signed-off-by: Blue Swirl <[email protected]>
block/vdi.c

index db3fe1633abd9ee70b0f7ecef666f4c9d540fe4a..4ca8dcb7dc6466cb3ced426ff4cc2c569d0cb58c 100644 (file)
@@ -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;
This page took 0.027395 seconds and 4 git commands to generate.