projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e4cee2
)
use memcpy instead of re-assign pointer
164/head
author
marshmellow42
<marshmellowrf@gmail.com>
Tue, 16 Feb 2016 14:38:37 +0000
(09:38 -0500)
committer
marshmellow42
<marshmellowrf@gmail.com>
Tue, 16 Feb 2016 14:38:37 +0000
(09:38 -0500)
client/cmddata.c
patch
|
blob
|
blame
|
history
diff --git
a/client/cmddata.c
b/client/cmddata.c
index c43dfaf120700e5869c689ba77fe03ebf189511d..900cfc83215f019446003382976753f23ec31970 100644
(file)
--- a/
client/cmddata.c
+++ b/
client/cmddata.c
@@
-924,16
+924,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