brndnmtthws/conky — pull request #11 by rephorm (2013-04-30 17:34:01+00:00)
Title: Fix unknown short battery status

Before, in the case of an unknown battery status (which often happens on my Sony VAIO laptop after waking from sleep), the buffer would be unterminated.

(Although, this memmove trick is a bit odd. It would probably be better to remove the memmove's and put a single buffer[1] = '\0'; at the end of the function).