1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

Merge pull request #11 from rephorm/patch-1

Fix unknown short battery status
This commit is contained in:
Brenden Matthews 2013-05-23 17:19:59 -07:00
commit 7a1f20847f

View File

@ -2088,7 +2088,7 @@ void get_battery_short_status(char *buffer, unsigned int n, const char *bat)
memmove(buffer + 1, buffer + 5, n - 5);
} else if (0 != strncmp("AC", buffer, 2)) {
buffer[0] = 'U';
memmove(buffer + 1, buffer + 11, n - 11);
memmove(buffer + 1, buffer + 2, n - 2);
}
}