projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c13f3e
)
Use pstrcpy to avoid OpenBSD linker warnings
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 15 Aug 2009 11:33:58 +0000
(11:33 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 15 Aug 2009 11:33:58 +0000
(11:33 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
block/vdi.c
patch
|
blob
|
history
diff --git
a/block/vdi.c
b/block/vdi.c
index
db3fe16
..
4ca8dcb
100644
(file)
--- 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;