Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Clarified result of getting length of base64 encoding should be a integer.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 2 Aug 2015 18:51:24 +0000 (19:51 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 2 Aug 2015 18:51:24 +0000 (19:51 +0100)
source/contacteditor/frmContactEditorKey.cpp

index 7234bbe..eca7673 100644 (file)
@@ -225,7 +225,7 @@ void frmContactEditorKey::ProcessAction( wxCommandEvent& event )
                        
                        wxString wxSb64orig = txtKeyData->GetValue();
                        std::string base64new = std::string(wxSb64orig.mb_str());
-                       std::string base64enc = base64_encode(reinterpret_cast<const unsigned char*>(base64new.c_str()), base64new.length());
+                       std::string base64enc = base64_encode(reinterpret_cast<const unsigned char*>(base64new.c_str()), (int)base64new.length());
                        wxString wxSb64key(base64enc.c_str(), wxConvUTF8);
                        
                        KeyListPtr->insert(std::make_pair(KeyListIndex, wxSb64key));
@@ -307,7 +307,7 @@ void frmContactEditorKey::ProcessAction( wxCommandEvent& event )
                        
                        wxString wxSb64orig = txtKeyData->GetValue();
                        std::string base64new = std::string(wxSb64orig.mb_str());
-                       std::string base64enc = base64_encode(reinterpret_cast<const unsigned char*>(base64new.c_str()), base64new.length());
+                       std::string base64enc = base64_encode(reinterpret_cast<const unsigned char*>(base64new.c_str()), (int)base64new.length());
                        wxString wxSb64key(base64enc.c_str(), wxConvUTF8);
                        
                        KeyListPtr->erase(KeyListIndex);                        
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy