Fixed issue when calling function.

This commit is contained in:
2025-02-27 12:27:55 +00:00
parent 9195618bb9
commit 52cf8521bc
4 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -6,7 +6,7 @@ int prompPassword(char *password, const char *msg)
{
struct termios oldt, newt;
printf(msg);
printf("%s", msg);
try
{
// Disable echo
+1 -1
View File
@@ -92,7 +92,7 @@ int main(void)
for (size_t i = 0; i < 4; i++)
{
prompPassword(askedPass);
prompPassword(askedPass, "Please enter your unique password: ");
if (strcmp(password, askedPass) != 0)
{
printf("Invalid password, tries left: %zu\n", 2 - i);