aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-08 15:27:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-05-08 15:27:20 +0000
commit2b64948eb5ff24d2aed530b2fc5a25217cdc72f7 (patch)
treeddf5a9892e0923f86bb66b424414208b32808ed7 /block.c
parent1f50f8d1d4b7c3c6e86b149e1beba12da0b9cd27 (diff)
64 bit fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@790 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 5ed7a02b30..c1267888c8 100644
--- a/block.c
+++ b/block.c
@@ -170,7 +170,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int snapshot)
#ifndef _WIN32
if (snapshot) {
/* create a temporary COW file */
- cow_fd = mkstemp(template);
+ cow_fd = mkstemp64(template);
if (cow_fd < 0)
goto fail;
bs->cow_fd = cow_fd;