[libvirt] [PATCH 4/4] util: avoid PATH_MAX-sized array

2011-06-22 Thread Eric Blake
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

Re: [libvirt] [PATCH 4/4] util: avoid PATH_MAX-sized array

2011-06-22 Thread Matthias Bolte
2011/6/22 Eric Blake ebl...@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. ---  

Re: [libvirt] [PATCH 4/4] util: avoid PATH_MAX-sized array

2011-06-22 Thread Eric Blake
On 06/22/2011 05:08 PM, Matthias Bolte wrote: 2011/6/22 Eric Blake ebl...@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,