]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/apduinfo.c
fix #532. looks at length of parameters.
[proxmark3-svn] / client / emv / apduinfo.c
index d1491cc38d2bc6d66d54fc9058fe80b572e05f0c..ec7a64a199ef1a35b1a89df959846c0210c9e969 100644 (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);
Impressum, Datenschutz