mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 10:53:37 +08:00
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
This commit is contained in:
parent
cf257238ab
commit
eb5c851f2d
4
block.c
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user