am af4228c1: am e8f4fa1c: Merge "Fix off-by-one." into jb-mr1-dev

* commit 'af4228c1aa48887fe6811ad8275ed11f34ba0308':
  Fix off-by-one.
This commit is contained in:
Jeff Brown
2012-10-11 17:13:56 -07:00
committed by Android Git Automerger

View File

@@ -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());