]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
clear char array with each call
[proxmark3-svn] / client / cmddata.c
index 55e2daca4d38396320a5ce75556d292b2ab48ea7..c43dfaf120700e5869c689ba77fe03ebf189511d 100644 (file)
@@ -919,7 +919,9 @@ int CmdDetectClockRate(const char *Cmd)
 
 char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
 {
-       char *fskType;
+       static char fType[8];
+       memset(fType, 0x00, 8);
+       char *fskType = fType;
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
                        fskType = "FSK2a";
Impressum, Datenschutz