Commit 2b64948eb5ff24d2aed530b2fc5a25217cdc72f7
1 parent
1f50f8d1
64 bit fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@790 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
block.c
... | ... | @@ -170,7 +170,7 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int snapshot) |
170 | 170 | #ifndef _WIN32 |
171 | 171 | if (snapshot) { |
172 | 172 | /* create a temporary COW file */ |
173 | - cow_fd = mkstemp(template); | |
173 | + cow_fd = mkstemp64(template); | |
174 | 174 | if (cow_fd < 0) |
175 | 175 | goto fail; |
176 | 176 | bs->cow_fd = cow_fd; | ... | ... |