diff --git a/src/detection/battery/battery_linux.c b/src/detection/battery/battery_linux.c index 940b9d719..8a9b2c641 100644 --- a/src/detection/battery/battery_linux.c +++ b/src/detection/battery/battery_linux.c @@ -108,7 +108,7 @@ static void parseBattery(int dfd, const char* id, FFBatteryOptions* options, FFl if (ffReadFileBufferRelative(dfd, "capacity_level", &tmpBuffer)) { - ffStrbufTrimRightSpace(&result->manufacturer); + ffStrbufTrimRightSpace(&tmpBuffer); if (ffStrbufEqualS(&tmpBuffer, "Critical")) { if (result->status.length)