Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ae78608 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: Minor usb stability fix"

parents 1c1ce6ef dad3b78d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ static int usb_get_capability(char *type, int32_t *channels,

    file_size = st.st_size;

    read_buf = (char *)calloc(1, USB_BUFF_SIZE);
    read_buf = (char *)calloc(1, USB_BUFF_SIZE + 1);
    err = read(fd, read_buf, USB_BUFF_SIZE);
    str_start = strstr(read_buf, type);
    if (str_start == NULL) {