aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-11 15:06:09 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-02-11 15:06:09 +0000
commiteb5c851f2dadab59c9de4132e00268219edb5a44 (patch)
tree5312916c98077a6a6a96c18db0257085c595e13e /block.c
parentcf257238ab9f14c9efc917efb70fb39a8e1fc736 (diff)
Use PATH_MAX for name lengths, by Sergey Vlasov.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2419 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
-rw-r--r--block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block.c b/block.c
index 9264e42a63..82bbf60d2d 100644
--- a/block.c
+++ b/block.c
@@ -322,8 +322,8 @@ int bdrv_open2(BlockDriverState *bs, const char *filename, int flags,
BlockDriver *drv)
{
int ret, open_flags;
- char tmp_filename[1024];
- char backing_filename[1024];
+ char tmp_filename[PATH_MAX];
+ char backing_filename[PATH_MAX];
bs->read_only = 0;
bs->is_temporary = 0;