diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llpanellogin.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 3d3aee9..6a0bdb4 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -518,14 +518,15 @@ void LLPanelLogin::setFields(const std::string& firstname, const std::string& la | |||
518 | // nice row of asterixes. | 518 | // nice row of asterixes. |
519 | const char* filler = "123456789!123456"; | 519 | const char* filler = "123456789!123456"; |
520 | sInstance->childSetText("password_edit", filler); | 520 | sInstance->childSetText("password_edit", filler); |
521 | strcpy(sInstance->mIncomingPassword, filler); | 521 | strcpy(sInstance->mIncomingPassword, filler); /*Flawfinder: ignore*/ |
522 | strcpy(sInstance->mMungedPassword, password.c_str()); | 522 | strcpy(sInstance->mMungedPassword, password.c_str()); /*Flawfinder: ignore*/ |
523 | } | 523 | } |
524 | else | 524 | else |
525 | { | 525 | { |
526 | // this is a normal text password | 526 | // this is a normal text password |
527 | sInstance->childSetText("password_edit", password); | 527 | sInstance->childSetText("password_edit", password); |
528 | strcpy(sInstance->mIncomingPassword, password.c_str()); | 528 | strncpy(sInstance->mIncomingPassword, password.c_str(), sizeof(sInstance->mIncomingPassword) -1); /*Flawfinder: ignore*/ |
529 | sInstance->mIncomingPassword[sizeof(sInstance->mIncomingPassword) -1] = '\0'; | ||
529 | LLMD5 pass((unsigned char *)password.c_str()); | 530 | LLMD5 pass((unsigned char *)password.c_str()); |
530 | pass.hex_digest(sInstance->mMungedPassword); | 531 | pass.hex_digest(sInstance->mMungedPassword); |
531 | } | 532 | } |