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:
sth 2003-07-18 09:34:38 +00:00
parent cb581484b8
commit c2d09ff959
1 changed files with 1 additions and 1 deletions

View File

@ -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;