diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-17 17:08:19 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-17 17:08:19 +0300 |
commit | 183f0cbd928afce0ec5267f1d14ca2310e4bca25 (patch) | |
tree | 3c5ae95b3d03f4fb9507c18a397989a95b5f0397 | |
parent | ca445d73975b8f78003887562da4c5ef6f6d835e (diff) |
modified: messages.cpp
modified: utilities.cpp
-rw-r--r-- | messages.cpp | 2 | ||||
-rw-r--r-- | utilities.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/messages.cpp b/messages.cpp index 47f2669..5c1159a 100644 --- a/messages.cpp +++ b/messages.cpp @@ -37,7 +37,7 @@ int RecvMsgSvc(WPARAM w, LPARAM l) wchar_t *tmp = mir_utf8decodeW(msg);
wstring str = tmp;
mir_free(tmp);
- wstring::size_type s1, s2;
+ wstring::size_type s1 = wstring::npos, s2 = wstring::npos;
if((str.find(_T("-----END PGP PUBLIC KEY BLOCK-----")) != wstring::npos) && (str.find(_T("-----BEGIN PGP PUBLIC KEY BLOCK-----")) != wstring::npos))
{
diff --git a/utilities.cpp b/utilities.cpp index 480f9b6..85deb5c 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -339,8 +339,8 @@ static JABBER_HANDLER_FUNC SendHandler(IJabberInterface *ji, HXML node, void *pU { if(_tcsstr(str, _T("-----BEGIN PGP MESSAGE-----")) && _tcsstr(str, _T("-----END PGP MESSAGE-----"))) { - xi.setText(local_node, _T("This message is encrypted.")); wstring data = str; + xi.setText(local_node, _T("This message is encrypted.")); wstring::size_type p1 = data.find(_T("-----BEGIN PGP MESSAGE-----")) + _tcslen(_T("-----BEGIN PGP MESSAGE-----")); if(data.find(_T("Version: "), p1) != wstring::npos) { |