Merge pull request #35 from pampanic/bandiePreMerge

Closes #33
This commit is contained in:
Bandie 2018-04-02 01:24:05 +02:00 committed by GitHub
commit c7e74b6769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,11 +73,10 @@ int main(void){
strcpy(pw[j], password[j]);
int ok;
for(int k=0; k<3; k++){
pwvrf[j] = crypt(getpass(prompt[j+2]), pw[j]);
strcpy(pwv[j], pwvrf[j]);
ok = strcmp(pw[j], pwv[j]) == 0;
int ok = strcmp(pw[j], pwv[j]) == 0;
if(!ok){
if(k==2){
printf("Didn't work. Bye.\n");