Read the file's contents as binary
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1284 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
cb581484b8
commit
c2d09ff959
|
@ -113,7 +113,7 @@ int read_input(u8 *buf, int buflen)
|
|||
FILE *inf;
|
||||
int c;
|
||||
|
||||
inf = fopen(opt_input, "r");
|
||||
inf = fopen(opt_input, "rb");
|
||||
if (inf == NULL) {
|
||||
fprintf(stderr, "Unable to open '%s' for reading.\n", opt_input);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue