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

Commit b316d1ec authored by Ting-Yuan Huang's avatar Ting-Yuan Huang Committed by android-build-merger
Browse files

osi: Suppress length warning in config parsing am: a04fa413 am: fb361e64

am: d6badb64

Change-Id: I73b0cee3d1ad82c061fd7b9d725160ce86da193e
parents c8e56b61 d6badb64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ static bool config_parse(FILE* fp, config_t* config) {
                  line_num);
        return false;
      }
      strncpy(section, line_ptr + 1, len - 2);
      strncpy(section, line_ptr + 1, len - 2);  // NOLINT (len < 1024)
      section[len - 2] = '\0';
    } else {
      char* split = strchr(line_ptr, '=');