]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf15.c
fixed offset in 'hf 15 cmd read' to avoid losing the first octet/byte
[proxmark3-svn] / client / cmdhf15.c
index 2caab5cd7cd5a1683f275a17d4f5e2baea6ccf38..29612c307a4959d8a6b8f8db90184409ab8b63ca 100644 (file)
@@ -84,8 +84,8 @@ const productName uidmapping[] = {
 };
 
 
-// fast method to just read the UID of an tag (collission detection not supported)
-//             *buf    shouls be large enough to fit the 64bit uid
+// fast method to just read the UID of a tag (collission detection not supported)
+//             *buf    should be large enough to fit the 64bit uid
 // returns 1 if suceeded
 int getUID(uint8_t *buf) 
 {
@@ -668,8 +668,8 @@ int CmdHF15CmdRead(const char *Cmd) {
                                        sprintf(output+strlen(output),"%02hX ",recv[i]);                                        
                                }                                       
                                strcat(output,"   ");
-                               for ( int i=2; i<r->arg[0]-2; i++) {
-                                       sprintf(output+strlen(output),"%c",recv[i]>31 || recv[i]<127?recv[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);       
                        } else {
Impressum, Datenschutz