[libvirt] [PATCH 4/4] util: avoid PATH_MAX-sized array
Matthias Bolte
matthias.bolte at googlemail.com
Wed Jun 22 23:08:38 UTC 2011
2011/6/22 Eric Blake <eblake at redhat.com>:
> See previous patch for why this is good...
>
> * src/util/pci.c (struct _pciDevice, pciGetDevice, pciFreeDevice):
> Manage path dynamically. Report snprintf overflow.
> * src/util/hostusb.c (struct _usbDevice, usbGetDevice)
> (usbFreeDevice): Likewise.
> ---
> src/util/hostusb.c | 32 +++++++++++++++++++++++++-------
> src/util/pci.c | 31 +++++++++++++++++++++++++------
> 2 files changed, 50 insertions(+), 13 deletions(-)
ACK.
--
Matthias Bolte
http://photron.blogspot.com
More information about the libvir-list
mailing list