Properly handle *snprintf() errors
authorLaslo Hunhold <dev@frign.de>
Thu, 17 May 2018 21:23:28 +0000 (23:23 +0200)
committerAaron Marcher <me@drkhsh.at>
Thu, 17 May 2018 21:26:56 +0000 (23:26 +0200)
commitc83b388a3f8f7a8c8d5a5cfddb6ab397005371a1
tree7ec72cf6a75f0bdc858a2e67f1fc214a8f916de5
parentb759662983a159da8a3c361f4f222287b2e43331
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.
slstatus.c
util.c