mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 17:11:57 -06:00
64 bit fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@790 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1f50f8d1d4
commit
2b64948eb5
1 changed files with 1 additions and 1 deletions
2
block.c
2
block.c
|
@ -170,7 +170,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int snapshot)
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (snapshot) {
|
if (snapshot) {
|
||||||
/* create a temporary COW file */
|
/* create a temporary COW file */
|
||||||
cow_fd = mkstemp(template);
|
cow_fd = mkstemp64(template);
|
||||||
if (cow_fd < 0)
|
if (cow_fd < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
bs->cow_fd = cow_fd;
|
bs->cow_fd = cow_fd;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue