Skip to content
Browse files

Fixed get_usb_mode_index

  • Loading branch information...
1 parent 0b3f314 commit 3636b1a74d1d950765d5206542754bd14ef7fd77 @SkrilaxCZ SkrilaxCZ committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 usbd.c
View
2 usbd.c
@@ -319,7 +319,7 @@ static int usbd_get_mode_index(const char* mode, enum usb_mode_get_t usbmod)
break;
case USBMOD_APK_START:
- if (!strcmp(mode, usb_modes[i].apk_start))
+ if (!strncmp(mode, usb_modes[i].apk_start, strlen(usb_modes[i].apk_start)))
return i;
break;

0 comments on commit 3636b1a

Please sign in to comment.
Something went wrong with that request. Please try again.