Loading drivers/usb/gadget/configfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ static int usb_string_copy(const char *s, char **s_copy) if (!str) return -ENOMEM; } strncpy(str, s, MAX_USB_STRING_WITH_NULL_LEN); strlcpy(str, s, MAX_USB_STRING_WITH_NULL_LEN); if (str[ret - 1] == '\n') str[ret - 1] = '\0'; *s_copy = str; Loading Loading
drivers/usb/gadget/configfs.c +1 −1 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ static int usb_string_copy(const char *s, char **s_copy) if (!str) return -ENOMEM; } strncpy(str, s, MAX_USB_STRING_WITH_NULL_LEN); strlcpy(str, s, MAX_USB_STRING_WITH_NULL_LEN); if (str[ret - 1] == '\n') str[ret - 1] = '\0'; *s_copy = str; Loading