diff --git a/Sources/Plasma/CoreLib/plString.cpp b/Sources/Plasma/CoreLib/plString.cpp index a8773a99..010be0f8 100644 --- a/Sources/Plasma/CoreLib/plString.cpp +++ b/Sources/Plasma/CoreLib/plString.cpp @@ -269,7 +269,7 @@ void plString::IConvertFromIso8859_1(const char *astr, size_t size) return; if (size == STRLEN_AUTO) - size = strnlen(astr, -(int32_t)size); + size = strnlen(astr, size); // Calculate the UTF-8 size size_t convlen = 0; diff --git a/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp b/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp index ef6abde0..fe00a35b 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp @@ -994,9 +994,9 @@ PyObject* cyMisc::GetLocalAvatar() PyObject* cyMisc::GetLocalPlayer() { return pyPlayer::New(plNetClientMgr::GetInstance()->GetLocalPlayerKey(), - plNetClientMgr::GetInstance()->GetPlayerName().c_str(), - plNetClientMgr::GetInstance()->GetPlayerID(), - 0.0 ); + plNetClientMgr::GetInstance()->GetPlayerName(), + plNetClientMgr::GetInstance()->GetPlayerID(), + 0.0 ); } /////////////////////////////////////////////////////////////////////////////