Merge "Fix segfault." am: b278ae0c1e

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

Change-Id: Iefeda021f623ae7bfd7ee26173a9bb5af8827a2b
This commit is contained in:
Treehugger Robot
2020-07-17 21:29:19 +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(),