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:
parent
1c78d9e688
commit
ef012c94f5
|
@ -478,7 +478,7 @@ static int muscle_list_files(sc_card_t *card, u8 *buf, size_t bufLen)
|
||||||
buf[1] = objectId[3];
|
buf[1] = objectId[3];
|
||||||
if(buf[0] == 0x00 && buf[1] == 0x00) continue; /* No directories/null names outside of root */
|
if(buf[0] == 0x00 && buf[1] == 0x00) continue; /* No directories/null names outside of root */
|
||||||
buf += 2;
|
buf += 2;
|
||||||
count+=2;
|
count+=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
|
|
Loading…
Reference in New Issue