]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf15.c
boolean fix in 'hf 15 cmd read' using Adrian's second patch from issue 20
[proxmark3-svn] / client / cmdhf15.c
index 2caab5cd7cd5a1683f275a17d4f5e2baea6ccf38..d3d9768167ef69892fe139c73217698dd122a8e0 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) 
 {
@@ -669,7 +669,7 @@ int CmdHF15CmdRead(const char *Cmd) {
                                }                                       
                                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]:'.');                                      
+                                       sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');                                      
                                }                                       
                                PrintAndLog("%s",output);       
                        } else {
Impressum, Datenschutz