On Wed, 2006-06-14 at 18:17 +0200, Fabrice Bellard wrote: > OK for this patch, but the following must be changed: > > 1) All instances of strcpy and strncpy must be replaced by pstrcpy. > > 2) product_name_size must be passed as parameter to usb_host_find_device(). lo. Attached is something I hope you will find to be more clean. I used a define for product name size since this is used in two places to define an array size (in usb_host_device_open() and the FindDeviceState struct).