diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-17 19:49:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-17 19:49:19 +0300 |
commit | ba8c67dafed3f2f143ea37a657294f59d3cb4e00 (patch) | |
tree | 93f68ca778c1d6e6ca1fe01398fbfb48262a6d92 /plugins/New_GPG/src/main.cpp | |
parent | 95d8d59b4e837afcb5eb8f0e7111139919d2e50c (diff) |
n-nope, three utf-8 chars do not talke three bytes
Diffstat (limited to 'plugins/New_GPG/src/main.cpp')
-rwxr-xr-x | plugins/New_GPG/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/main.cpp b/plugins/New_GPG/src/main.cpp index a1a6436d14..db51945fa5 100755 --- a/plugins/New_GPG/src/main.cpp +++ b/plugins/New_GPG/src/main.cpp @@ -313,7 +313,7 @@ void ImportKey(MCONTACT hContact, std::wstring new_key) s = output.find("\"", s2); s += 1; } - else s += 3; + else s += sizeof(RUS_QUOTE) - 1; bool uncommon = false; if ((s2 = output.find("(", s)) == string::npos) { @@ -376,8 +376,8 @@ void ImportKey(MCONTACT hContact, std::wstring new_key) s = output.find("\"", s2); s += 1; } - else - s += 3; + else s += sizeof(RUS_QUOTE) - 1; + bool uncommon = false; if ((s2 = output.find("(", s)) == string::npos) { if ((s2 = output.find("<", s)) == string::npos) { @@ -437,7 +437,7 @@ void ImportKey(MCONTACT hContact, std::wstring new_key) s = output.find("\"", s2); s += 1; } - else s += 3; + else s += sizeof(RUS_QUOTE) - 1; bool uncommon = false; if ((s2 = output.find("(", s)) == string::npos) { |