Thomas Harning: sc_list_files doesn't return the length of the

applicable buffer, but instead the # of files. Fixed.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3047 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2006-11-02 06:55:29 +00:00
parent 1c78d9e688
commit ef012c94f5
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static int muscle_list_files(sc_card_t *card, u8 *buf, size_t bufLen)
buf[1] = objectId[3];
if(buf[0] == 0x00 && buf[1] == 0x00) continue; /* No directories/null names outside of root */
buf += 2;
count+=2;
count+=1;
}
}
return count;