Fix potential heap corruption in "gpg -v --version"