am e8f4fa1c: Merge "Fix off-by-one." into jb-mr1-dev
* commit 'e8f4fa1cb3bfd68de235949080f09f9631976275': Fix off-by-one.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user