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

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

Change-Id: I338ec794dcc5db22ee4615ef139500c44eb1cf2b
parents 3f783a50 a04fa413
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, '=');