From: Laslo Hunhold Date: Thu, 17 May 2018 21:23:28 +0000 (+0200) Subject: Properly handle *snprintf() errors X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/c83b388a3f8f7a8c8d5a5cfddb6ab397005371a1?ds=sidebyside;hp=c83b388a3f8f7a8c8d5a5cfddb6ab397005371a1 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. ---