diff --git a/src/librekey/key_store_g10.cpp b/src/librekey/key_store_g10.cpp index e646f02fb..fd9047924 100644 --- a/src/librekey/key_store_g10.cpp +++ b/src/librekey/key_store_g10.cpp @@ -338,7 +338,7 @@ gnupg_sexp_t::add_mpi(const std::string &name, const pgp_mpi_t &mpi) if (idx < len) { if (mpi.mpi[idx] & 0x80) { data.append(0); - data.std::basic_string::append(mpi.mpi + idx, len - idx); + data.append(mpi.mpi + idx, len - idx); } else { data.assign(mpi.mpi + idx, mpi.mpi + len); } @@ -805,7 +805,7 @@ g23_parse_seckey(pgp_key_pkt_t &seckey, return false; } - auto & alg_bt = alg_s_exp->sexp_string_at(0)->get_string(); + auto & alg_bt = alg_s_exp->sexp_string_at(0)->get_string().as_string(); pgp_pubkey_alg_t alg = static_cast( id_str_pair::lookup(g10_alg_aliases, alg_bt.c_str(), PGP_PKA_NOTHING)); if (alg == PGP_PKA_NOTHING) {