]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
Typos
[proxmark3-svn] / client / cmddata.c
index f4e161755ef9946b49dba6e2533d68a642c8340e..900cfc83215f019446003382976753f23ec31970 100644 (file)
@@ -920,19 +920,20 @@ int CmdDetectClockRate(const char *Cmd)
 char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
 {
        static char fType[8];
 char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
 {
        static char fType[8];
+       memset(fType, 0x00, 8);
        char *fskType = fType;
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
        char *fskType = fType;
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
-                       fskType = "FSK2a";
+                       memcpy(fskType, "FSK2a", 5);
                else //fsk2
                else //fsk2
-                       fskType = "FSK2";
+                       memcpy(fskType, "FSK2", 4);
        } else if (fchigh == 8 && fclow == 5) {
                if (invert)
        } else if (fchigh == 8 && fclow == 5) {
                if (invert)
-                       fskType = "FSK1";
+                       memcpy(fskType, "FSK1", 4);
                else
                else
-                       fskType = "FSK1a";
+                       memcpy(fskType, "FSK1a", 5);
        } else {
        } else {
-               fskType = "FSK??";
+               memcpy(fskType, "FSK??", 5);
        }
        return fskType;
 }
        }
        return fskType;
 }
Impressum, Datenschutz