]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Fixed some warnings I didn't take notice off.
authoriceman1001 <iceman@iuse.se>
Thu, 28 Jul 2016 20:17:44 +0000 (22:17 +0200)
committericeman1001 <iceman@iuse.se>
Thu, 28 Jul 2016 20:17:44 +0000 (22:17 +0200)
- memcpy should have been "memset"
- forgot to add function declaration into header file.

client/cmdhflegic.c
common/crc.h

index d6aaaf3d0bc5dd1ddd5db727cceef107a42a39f0..838a41a25697b26619f73041008964933abae768 100644 (file)
@@ -547,7 +547,7 @@ int CmdLegicRfFill(const char *Cmd) {
 
     int i;
     UsbCommand c = {CMD_DOWNLOADED_SIM_SAMPLES_125K, {0, 0, 0}};
-       memcpy(c.d.asBytes, cmd.arg[2], 48);
+       memset(c.d.asBytes, cmd.arg[2], 48);
 
        for(i = 0; i < 22; i++) {
                c.arg[0] = i*48;
index 48e0d1e65c2b436047f326d6e88df8fa6748e271..957226a4e2f3d8ba68d90dea5d88f963b65cda9d 100644 (file)
@@ -70,7 +70,7 @@ uint32_t CRC8ja(uint8_t *buff, size_t size);
 
 // test crc 16.
 uint32_t CRC16_DNP(uint8_t *buff, size_t size);
-
+uint32_t CRC16_CCITT(uint8_t *buff, size_t size);
 
 /* Static initialization of a crc structure */
 #define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \
Impressum, Datenschutz