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

Commit a04fa413 authored by Ting-Yuan Huang's avatar Ting-Yuan Huang Committed by Myles Watson
Browse files

osi: Suppress length warning in config parsing

Bug: 38178471
Test: Built without seeing the warning at the line
Change-Id: I1f8a5fc58313456921891700a3039cad1715b4d0
parent 3b10c39a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -441,7 +441,7 @@ static bool config_parse(FILE* fp, config_t* config) {
                  line_num);
                  line_num);
        return false;
        return false;
      }
      }
      strncpy(section, line_ptr + 1, len - 2);
      strncpy(section, line_ptr + 1, len - 2);  // NOLINT (len < 1024)
      section[len - 2] = '\0';
      section[len - 2] = '\0';
    } else {
    } else {
      char* split = strchr(line_ptr, '=');
      char* split = strchr(line_ptr, '=');