Merge pull request #475 from merlokk/master

true fix #472 )))
This commit is contained in:
Iceman 2017-11-11 00:39:29 +01:00 committed by GitHub
commit c0e852f907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,8 +283,8 @@ const APDUCode* const GetAPDUCode(uint8_t sw1, uint8_t sw2) {
int mineq = 100;
int mineqindx = 0;
sprintf(&buf[0], "%02X ", sw1);
sprintf(&buf[2], "%02X ", sw2);
sprintf(&buf[0], "%02X", sw1);
sprintf(&buf[2], "%02X", sw2);
for (int i = 0; i < APDUCodeTableLen; i++) {
res = CodeCmp(APDUCodeTable[i].ID, buf);