diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-01-15 21:10:09 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-01-15 21:15:34 +0100 |
commit | 297f45e52a48f6470acf65dea6f0be67d281a16e (patch) | |
tree | a32c8321237d834bf76b94529f91d4ad31ecac54 /Library/VeraCryptLib | |
parent | 2cc35a194caf8e473d22ede8e8a5ff364cf90df6 (diff) | |
download | VeraCrypt-DCS-297f45e52a48f6470acf65dea6f0be67d281a16e.tar.gz VeraCrypt-DCS-297f45e52a48f6470acf65dea6f0be67d281a16e.zip |
Replace strcpy by EFI AsciiStrCpyS to fix warning
Diffstat (limited to 'Library/VeraCryptLib')
-rw-r--r-- | Library/VeraCryptLib/DcsVeraCrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/VeraCryptLib/DcsVeraCrypt.c b/Library/VeraCryptLib/DcsVeraCrypt.c index 7fbea97..c165d9f 100644 --- a/Library/VeraCryptLib/DcsVeraCrypt.c +++ b/Library/VeraCryptLib/DcsVeraCrypt.c @@ -338,7 +338,7 @@ VCAskPwd( gAutoLogin = 0;
gAuthPwdCode = AskPwdRetLogin;
vcPwd->Length = (unsigned int)strlen(gAutoPassword);
- strcpy(vcPwd->Text, gAutoPassword);
+ AsciiStrCpyS(vcPwd->Text, sizeof(vcPwd->Text), gAutoPassword);
}
else {
if (gAuthPasswordType == 1 &&
|