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

Commit d6badb64 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

Change-Id: I6d38fee565d635ba2a9ca89ac3b078b654e3d182
parents 83bb063f fb361e64
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, '=');