diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-15 11:33:58 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-15 11:33:58 +0000 |
commit | 1786dc15eeecdc49a2097e262a9ad1510a14dcc0 (patch) | |
tree | 5b37eaaf0e443a54601e27a3f881a4c419b16248 /block/vdi.c | |
parent | bsd-user: Add generic env variable handling (diff) | |
download | qemu-kvm-1786dc15eeecdc49a2097e262a9ad1510a14dcc0.tar.gz qemu-kvm-1786dc15eeecdc49a2097e262a9ad1510a14dcc0.tar.bz2 qemu-kvm-1786dc15eeecdc49a2097e262a9ad1510a14dcc0.zip |
Use pstrcpy to avoid OpenBSD linker warnings
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/vdi.c')
-rw-r--r-- | block/vdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vdi.c b/block/vdi.c index db3fe1633..4ca8dcb7d 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; |