]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdcrc.c
Typo fix for CmdPing
[proxmark3-svn] / client / cmdcrc.c
index 8a60fef60efd071ccd39a93161be631a9fc01b5f..fddf0ac4d53283253bab7a50554485f22a8f1e89 100644 (file)
@@ -44,9 +44,10 @@ int split(char *str, char *arr[MAX_ARGS]){
                while(isspace(str[beginIndex])){
                        ++beginIndex;
                }
-               if(str[beginIndex] == '\0')
+               if(str[beginIndex] == '\0') {
                        break;
-                       endIndex = beginIndex;
+               }
+               endIndex = beginIndex;
                while (str[endIndex] && !isspace(str[endIndex])){
                        ++endIndex;
                }
@@ -311,7 +312,7 @@ int RunModel(char *inModel, char *inHexStr, bool reverse, char endian, char *res
        int ibperhx = 8, obperhx = 8;
        int rflags = 0; // search flags 
        int c;
-       unsigned long width;
+       //unsigned long width;
        poly_t apoly, crc;
 
        char *string;
@@ -331,7 +332,7 @@ int RunModel(char *inModel, char *inHexStr, bool reverse, char endian, char *res
                return uerr("no preset models available");
 
        // must set width so that parameter to -ipx is not zeroed 
-       width = plen(model.spoly);
+       //width = plen(model.spoly);
        rflags |= R_HAVEP | R_HAVEI | R_HAVERI | R_HAVERO | R_HAVEX;
        
        //set flags
Impressum, Datenschutz