Add a comment so nobody accidentally changes the sprintf() call back to
snprintf().

Convert a random sprintf() call in another part of the code to
snprintf() and remove an unnecessary cast.