Merge "Fix segfault."

This commit is contained in:
Treehugger Robot 2020-07-17 21:20:11 +00:00 committed by Gerrit Code Review
commit b278ae0c1e

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(),