am 733a2f65: am 1b4c0d70: Merge "Fix a crash in BatteryStatsImpl, due to a previous fix." into froyo
Merge commit '733a2f654934d452b2febf6f80cd1136830758d5' into kraken * commit '733a2f654934d452b2febf6f80cd1136830758d5': Fix a crash in BatteryStatsImpl, due to a previous fix.
This commit is contained in:
@@ -891,7 +891,10 @@ public final class BatteryStatsImpl extends BatteryStats {
|
||||
for (endIndex=startIndex;
|
||||
endIndex < len && wlBuffer[endIndex] != '\n' && wlBuffer[endIndex] != '\0';
|
||||
endIndex++);
|
||||
endIndex++; // endIndex is an exclusive upper bound.
|
||||
// Don't go over the end of the buffer
|
||||
if (endIndex < len) {
|
||||
endIndex++; // endIndex is an exclusive upper bound.
|
||||
}
|
||||
|
||||
String[] nameStringArray = mProcWakelocksName;
|
||||
long[] wlData = mProcWakelocksData;
|
||||
|
||||
Reference in New Issue
Block a user