summaryrefslogtreecommitdiff
path: root/drivers/fastboot
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fastboot')
-rw-r--r--drivers/fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fastboot/fastboot.c b/drivers/fastboot/fastboot.c
index a922b30..dd5205d 100644
--- a/drivers/fastboot/fastboot.c
+++ b/drivers/fastboot/fastboot.c
@@ -408,7 +408,7 @@ static void fastboot_init_strings(void)
fastboot_string_table[STR_PRODUCT_INDEX] = string;
string = (struct usb_string_descriptor *)wstrSerial;
- string->bLength = strlen(CONFIG_FASTBOOT_SERIAL_NUM);
+ string->bLength = sizeof(wstrSerial);
string->bDescriptorType = USB_DT_STRING;
str2wide(CONFIG_FASTBOOT_SERIAL_NUM, string->wData);
fastboot_string_table[STR_SERIAL_INDEX] = string;