imv-attestation: Use proper cast for length when using %.*s