fix bugs
This commit is contained in:
parent
88a0530ca3
commit
5ab2d05bf4
@ -12,7 +12,7 @@ checkkey(int argc, char *argv[])
|
|||||||
int cnt2 = 0;
|
int cnt2 = 0;
|
||||||
int flg = 0;
|
int flg = 0;
|
||||||
|
|
||||||
key1 = fopen(argv[1], "r");
|
key1 = fopen(argv[2], "r");
|
||||||
if (key1 == NULL) {
|
if (key1 == NULL) {
|
||||||
printf("cannot open local first key file\n");
|
printf("cannot open local first key file\n");
|
||||||
return 1;
|
return 1;
|
||||||
@ -21,7 +21,7 @@ checkkey(int argc, char *argv[])
|
|||||||
fseek(key1, 0, SEEK_END);
|
fseek(key1, 0, SEEK_END);
|
||||||
cnt1 = ftell(key1);
|
cnt1 = ftell(key1);
|
||||||
|
|
||||||
key2 = fopen(argv[2], "r");
|
key2 = fopen(argv[3], "r");
|
||||||
if (key2 == NULL) {
|
if (key2 == NULL) {
|
||||||
printf("cannot open second key file\n");
|
printf("cannot open second key file\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -45,4 +45,6 @@ genkey(int N)
|
|||||||
printf(COL_BLUE "%c" COL_RESET, key[count]);
|
printf(COL_BLUE "%c" COL_RESET, key[count]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user