Code

battery plugin: null-terminate buffer
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 17 Dec 2016 17:39:39 +0000 (18:39 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 17 Dec 2016 17:39:39 +0000 (18:39 +0100)
commit55299db6f5fe4ae0e784c77ec16c66c71a18f2e8
tree7b66976e3587b42060a5c1f2f1440ed360603fe1
parente60fc4513bd3107cd001447377f4ce89e1585ccb
battery plugin: null-terminate buffer

We call strstripnewline on it, which expects a null-terminated string.

CID #158524
src/battery.c