]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block.c
vnc: fix option misspelling ("non-adapative" -> "non-adaptive")
[mirror_qemu.git] / block.c
diff --git a/block.c b/block.c
index 854ebd60d448a2a2b18ca21045a772b160512007..c05875fe393a1a64db599846db4be00cd03032bc 100644 (file)
--- a/block.c
+++ b/block.c
@@ -787,7 +787,8 @@ int bdrv_open(BlockDriverState *bs, const char *filename, int flags,
               BlockDriver *drv)
 {
     int ret;
-    char tmp_filename[PATH_MAX];
+    /* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */
+    char tmp_filename[PATH_MAX + 1];
 
     if (flags & BDRV_O_SNAPSHOT) {
         BlockDriverState *bs1;