]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf15.c
typofix in prepareHF15Cmd comment based on Adrian's second patch from issue 20
[proxmark3-svn] / client / cmdhf15.c
index d3d9768167ef69892fe139c73217698dd122a8e0..f23a10c731fbdf2e6aa3703a95e69626943645cf 100644 (file)
@@ -533,7 +533,7 @@ int prepareHF15Cmd(char **cmd, UsbCommand *c, uint8_t iso15cmd[], int iso15cmdle
        while (**cmd==' ' || **cmd=='\t') (*cmd)++;
        
        if (strstr(*cmd,"-2")==*cmd) {
-               c->arg[1]=0; // quse 1of256
+               c->arg[1]=0; // use 1of256
                (*cmd)+=2;
        }
 
@@ -668,7 +668,7 @@ int CmdHF15CmdRead(const char *Cmd) {
                                        sprintf(output+strlen(output),"%02hX ",recv[i]);                                        
                                }                                       
                                strcat(output,"   ");
-                               for ( int i=2; i<r->arg[0]-2; i++) {
+                               for ( int i=1; i<r->arg[0]-2; i++) {
                                        sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');                                      
                                }                                       
                                PrintAndLog("%s",output);       
Impressum, Datenschutz