Commit eb5c851f2dadab59c9de4132e00268219edb5a44

Authored by ths
1 parent cf257238

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
Showing 1 changed file with 2 additions and 2 deletions
@@ -322,8 +322,8 @@ int bdrv_open2(BlockDriverState *bs, const char *filename, int flags, @@ -322,8 +322,8 @@ int bdrv_open2(BlockDriverState *bs, const char *filename, int flags,
322 BlockDriver *drv) 322 BlockDriver *drv)
323 { 323 {
324 int ret, open_flags; 324 int ret, open_flags;
325 - char tmp_filename[1024];  
326 - char backing_filename[1024]; 325 + char tmp_filename[PATH_MAX];
  326 + char backing_filename[PATH_MAX];
327 327
328 bs->read_only = 0; 328 bs->read_only = 0;
329 bs->is_temporary = 0; 329 bs->is_temporary = 0;