diff options
author | Tom Rini <trini@konsulko.com> | 2016-07-01 22:35:20 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-01 22:35:20 -0400 |
commit | 68f7289b4ff6daf8c7e9898d5f0eb8f0aaad7bba (patch) | |
tree | 83bfb78d564f18179741f99e8957ffebc905daa2 /drivers/usb/host/ehci-fsl.c | |
parent | 2f6b47061d1979d241930843ff154c6f1f1ece58 (diff) | |
parent | 57de41e9c944af8d2c7bfcc2358414c5dd8c39df (diff) | |
download | u-boot-imx-68f7289b4ff6daf8c7e9898d5f0eb8f0aaad7bba.zip u-boot-imx-68f7289b4ff6daf8c7e9898d5f0eb8f0aaad7bba.tar.gz u-boot-imx-68f7289b4ff6daf8c7e9898d5f0eb8f0aaad7bba.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/host/ehci-fsl.c')
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index a43d37d..fa916ed 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -65,7 +65,8 @@ int ehci_hcd_init(int index, enum usb_init_type init, mdelay(5); } memset(current_usb_controller, '\0', 5); - snprintf(current_usb_controller, 4, "usb%d", index+1); + snprintf(current_usb_controller, sizeof(current_usb_controller), + "usb%d", index+1); switch (index) { case 0: |