diff options
author | Slávek Banko <[email protected]> | 2020-04-07 02:21:44 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-10 12:18:18 +0200 |
commit | ef3976a6cb843f51333ea43172306a9c8f4954ef (patch) | |
tree | 032bda2a007070f9b572f78472c52c9a5f6ec538 /src/kgpgme.cpp | |
parent | d175607a268b6cc9dfeaeff1d0a38cf72201ad84 (diff) | |
download | basket-ef3976a6cb843f51333ea43172306a9c8f4954ef.tar.gz basket-ef3976a6cb843f51333ea43172306a9c8f4954ef.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/kgpgme.cpp')
-rw-r--r-- | src/kgpgme.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kgpgme.cpp b/src/kgpgme.cpp index 2fddec0..1dffc4b 100644 --- a/src/kgpgme.cpp +++ b/src/kgpgme.cpp @@ -382,12 +382,12 @@ void KGpgMe::setPassphraseCb() if (agent_info.find(':')) agent = true; if(agent_info.startsWith("disable:")) - setenv("GPG_AGENT_INFO", agent_info.mid(8), 1); + setenv("GPG_AGENT_INFO", agent_info.mid(8).local8Bit(), 1); } else { if(!agent_info.startsWith("disable:")) - setenv("GPG_AGENT_INFO", "disable:" + agent_info, 1); + setenv("GPG_AGENT_INFO", "disable:" + agent_info.local8Bit(), 1); } if (agent) gpgme_set_passphrase_cb(m_ctx, 0, 0); |