VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/Library/VeraCryptLib/DcsVeraCrypt.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-01-15 21:10:09 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-01-15 21:15:34 +0100
commit297f45e52a48f6470acf65dea6f0be67d281a16e (patch)
treea32c8321237d834bf76b94529f91d4ad31ecac54 /Library/VeraCryptLib/DcsVeraCrypt.c
parent2cc35a194caf8e473d22ede8e8a5ff364cf90df6 (diff)
downloadVeraCrypt-DCS-297f45e52a48f6470acf65dea6f0be67d281a16e.tar.gz
VeraCrypt-DCS-297f45e52a48f6470acf65dea6f0be67d281a16e.zip
Replace strcpy by EFI AsciiStrCpyS to fix warning
Diffstat (limited to 'Library/VeraCryptLib/DcsVeraCrypt.c')
-rw-r--r--Library/VeraCryptLib/DcsVeraCrypt.c2
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 &&