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 | |
parent | 95d8d59b4e837afcb5eb8f0e7111139919d2e50c (diff) |
n-nope, three utf-8 chars do not talke three bytes
Diffstat (limited to 'plugins/New_GPG/src')
-rwxr-xr-x | plugins/New_GPG/src/main.cpp | 8 | ||||
-rwxr-xr-x | plugins/New_GPG/src/messages.cpp | 2 |
2 files changed, 5 insertions, 5 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) { diff --git a/plugins/New_GPG/src/messages.cpp b/plugins/New_GPG/src/messages.cpp index 14ba256481..055ce67fa7 100755 --- a/plugins/New_GPG/src/messages.cpp +++ b/plugins/New_GPG/src/messages.cpp @@ -440,7 +440,7 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l) s1 = output.find("\"", s2); s1 += 1; } - else s1 += 3; + else s1 += sizeof(RUS_QUOTE) - 1; if ((s2 = output.find("(", s1)) == string::npos) s2 = output.find("<", s1); |