From: Pete Zaitcev <[EMAIL PROTECTED]>

Al Borchers suggested to do this in his review of my previous patch.
I guess that I skipped this initially because of my visceral dislike
of sizeof(data). But in this case it seems well localized.

Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/serial/io_edgeport.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c
index ed976ab..b85d215 100644
--- a/drivers/usb/serial/io_edgeport.c
+++ b/drivers/usb/serial/io_edgeport.c
@@ -2607,15 +2607,15 @@ static void get_manufacturing_desc (stru
                dbg("  BoardRev:       %d", 
edge_serial->manuf_descriptor.BoardRev);
                dbg("  NumPorts:       %d", 
edge_serial->manuf_descriptor.NumPorts);
                dbg("  DescDate:       %d/%d/%d", 
edge_serial->manuf_descriptor.DescDate[0], 
edge_serial->manuf_descriptor.DescDate[1], 
edge_serial->manuf_descriptor.DescDate[2]+1900);
-               unicode_to_ascii(string, 30,
+               unicode_to_ascii(string, sizeof(string),
                    edge_serial->manuf_descriptor.SerialNumber,
                    edge_serial->manuf_descriptor.SerNumLength/2);
                dbg("  SerialNumber: %s", string);
-               unicode_to_ascii(string, 30,
+               unicode_to_ascii(string, sizeof(string),
                    edge_serial->manuf_descriptor.AssemblyNumber,
                    edge_serial->manuf_descriptor.AssemblyNumLength/2);
                dbg("  AssemblyNumber: %s", string);
-               unicode_to_ascii(string, 30,
+               unicode_to_ascii(string, sizeof(string),
                    edge_serial->manuf_descriptor.OemAssyNumber,
                    edge_serial->manuf_descriptor.OemAssyNumLength/2);
                dbg("  OemAssyNumber:  %s", string);
-- 
1.4.0


All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to