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

Commit c51cb89d authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix off-by-one.

Bug: 7330567
Change-Id: I8653435c77daefa24991595f68b9f23dd930f14a
parent a2f7ca7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ static bool isMatch(const char* buffer, size_t length) {

        // Consider all zero-delimited fields of the buffer.
        const char* field = buffer;
        const char* end = buffer + length;
        const char* end = buffer + length + 1;
        do {
            if (strstr(field, match.string())) {
                ALOGV("Matched uevent message with pattern: %s", match.string());