]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: marshmellow42 's fix using memcpy instead of re-assign pointer.
authoriceman1001 <iceman@iuse.se>
Tue, 16 Feb 2016 17:15:18 +0000 (18:15 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 16 Feb 2016 17:15:18 +0000 (18:15 +0100)
Ref: https://github.com/marshmellow42/proxmark3/commit/38b3509542c4a5451a5701be0b073acbd7f79465

client/cmddata.c

index 44bc42c090c5b0228c04e494cfa21d76e9f372aa..e3226a777c0a9117709ce29d88fd782c93cbd61d 100644 (file)
@@ -925,16 +925,16 @@ char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert)
        char *fskType = fType;
        if (fchigh==10 && fclow==8){
                if (invert) //fsk2a
-                       fskType = "FSK2a";
+                       memcpy(fskType, "FSK2a", 5);
                else //fsk2
-                       fskType = "FSK2";
+                       memcpy(fskType, "FSK2", 4);
        } else if (fchigh == 8 && fclow == 5) {
                if (invert)
-                       fskType = "FSK1";
+                       memcpy(fskType, "FSK1", 4);
                else
-                       fskType = "FSK1a";
+                       memcpy(fskType, "FSK1a", 5);
        } else {
-               fskType = "FSK??";
+               memcpy(fskType, "FSK??", 5);
        }
        return fskType;
 }
Impressum, Datenschutz