]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed offset in 'hf 15 cmd read' to avoid losing the first octet/byte
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 18 May 2012 09:07:39 +0000 (09:07 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 18 May 2012 09:07:39 +0000 (09:07 +0000)
client/cmdhf15.c

index d3d9768167ef69892fe139c73217698dd122a8e0..29612c307a4959d8a6b8f8db90184409ab8b63ca 100644 (file)
@@ -668,7 +668,7 @@ int CmdHF15CmdRead(const char *Cmd) {
                                        sprintf(output+strlen(output),"%02hX ",recv[i]);                                        
                                }                                       
                                strcat(output,"   ");
                                        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);       
                                        sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');                                      
                                }                                       
                                PrintAndLog("%s",output);       
Impressum, Datenschutz