check the snprintf() retval for truncation