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

Commit 9e011cbd authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Increase limit for HID Device Descriptor in BT" am: f1689e70 am: a2637ef3

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2038803

Change-Id: Ie41008ae86a89bced3eec069e1f6f8828ce177c0
parents 6908ee8e a2637ef3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -495,8 +495,8 @@ static bool config_parse(FILE* fp, config_t* config) {
  CHECK(config != nullptr);

  int line_num = 0;
  char line[1024];
  char section[1024];
  char line[4096];
  char section[4096];
  strcpy(section, CONFIG_DEFAULT_SECTION);

  while (fgets(line, sizeof(line), fp)) {
@@ -513,7 +513,7 @@ static bool config_parse(FILE* fp, config_t* config) {
                << line_num;
        return false;
      }
      strncpy(section, line_ptr + 1, len - 2);  // NOLINT (len < 1024)
      strncpy(section, line_ptr + 1, len - 2);  // NOLINT (len < 4096)
      section[len - 2] = '\0';
    } else {
      char* split = strchr(line_ptr, '=');