summaryrefslogtreecommitdiff
path: root/components/battery.c
diff options
context:
space:
mode:
authorLaslo Hunhold <dev@frign.de>2018-05-17 23:23:28 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-17 23:26:56 +0200
commitc83b388a3f8f7a8c8d5a5cfddb6ab397005371a1 (patch)
tree7ec72cf6a75f0bdc858a2e67f1fc214a8f916de5 /components/battery.c
parentb759662983a159da8a3c361f4f222287b2e43331 (diff)
Properly handle *snprintf() errors
Posix guarantees that the resulting string is null-terminated, even if we have an overflow. Instead of doing what has already been done, properly warn when there has been an error or overflow, so the user can do something about it.
Diffstat (limited to 'components/battery.c')
0 files changed, 0 insertions, 0 deletions