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

Commit 9ddf4914 authored by Ivan Lozano's avatar Ivan Lozano Committed by Gerrit Code Review
Browse files

Merge "Fix sanitizer errors in bootstat.cpp."

parents 3b7998aa 44d3cacf
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -429,9 +429,11 @@ class pstoreConsole {
    if (needle.length() > pos) return std::string::npos;
    pos -= needle.length();
    // fuzzy match to maximum kBitErrorRate
    do {
    for (;;) {
      if (numError(pos, needle) != std::string::npos) return pos;
    } while (pos-- != 0);
      if (pos == 0) break;
      --pos;
    }
    return std::string::npos;
  }