Merge "Fix segfault." am: b278ae0c1e am: 5446c9c172

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1365592

Change-Id: I6502829205ede2de914b27e6c2c5c42916af2b39
This commit is contained in:
Treehugger Robot
2020-07-17 21:40:10 +00:00
committed by Automerger Merge Worker

View File

@@ -79,7 +79,7 @@ void convertFromHealthConfig(const HealthConfig& c, struct healthd_config *hc) {
hc->batteryCurrentAvgPath =
android::String8(c.batteryCurrentAvgPath.c_str(),
c.batteryCurrentNowPath.size());
c.batteryCurrentAvgPath.size());
hc->batteryChargeCounterPath =
android::String8(c.batteryChargeCounterPath.c_str(),