]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Fix regression for MinGW (assertion caused by short string)
authorStefan Weil <sw@weilnetz.de>
Thu, 22 Nov 2012 06:25:48 +0000 (07:25 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 3 Dec 2012 20:22:57 +0000 (14:22 -0600)
commit4fb9656b9d62ce348656a7184ac7861d70c490a7
treec9d953f5ff8e9b6e15cd262e9f518d14337e97b7
parent38c6d17e75f83363ef92582dd366a4b1d936dc2f
block: Fix regression for MinGW (assertion caused by short string)

The local string tmp_filename is passed to function get_tmp_filename
which expects a string with minimum size MAX_PATH for w32 hosts.

MAX_PATH is 260 and PATH_MAX is 259, so tmp_filename was too short.

Commit eba25057b9a5e19d10ace2bc7716667a31297169 introduced this
regression.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit 89c9bc3d147fdaa932db99b0463b4af1d3e7cda1)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c