Update sm9encrypt.c

This commit is contained in:
Zhi Guan
2022-10-28 14:56:45 +08:00
parent 879b37b283
commit 3484417cbe

View File

@@ -59,7 +59,7 @@ int sm9encrypt_main(int argc, char **argv)
} else if (!strcmp(*argv, "-in")) {
if (--argc < 1) goto bad;
infile = *(++argv);
if (!(infp = fopen(outfile, "r"))) {
if (!(infp = fopen(infile, "r"))) {
error_print();
goto end;
}