file size fix + removed unnecessary code from previous commit

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@889 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
sth 2003-01-30 09:45:13 +00:00
parent 16dfb55118
commit 7dab6baeee
1 changed files with 1 additions and 3 deletions

View File

@ -177,11 +177,9 @@ int sc_enum_apps(struct sc_card *card)
free(buf);
SC_TEST_RET(card->ctx, r, "read_binary() failed");
}
bufsize = file_size;
bufsize = r;
while (bufsize > 0) {
if (card->app_count == SC_MAX_CARD_APPS) {
free(buf);
buf = NULL;
error(card->ctx, "Too many applications on card");
break;
}