Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 227a240da2656e053687286d371ed443 > files > 2

libusb-0.1.12-12mdv2009.0.src.rpm

--- libusb-0.1.12/usb.c.memset	2006-03-04 03:52:46.000000000 +0100
+++ libusb-0.1.12/usb.c	2007-08-01 12:32:17.000000000 +0200
@@ -232,6 +232,7 @@ int usb_get_string_simple(usb_dev_handle
   char tbuf[255];	/* Some devices choke on size > 255 */
   int ret, langid, si, di;
 
+  memset(tbuf, 0, sizeof(tbuf));
   /*
    * Asking for the zero'th index is special - it returns a string
    * descriptor that contains all the language IDs supported by the