Remove compilation warning, even if it was not real issue
cmdhflegic.c:269:13: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
This commit is contained in:
@@ -169,7 +169,7 @@ int CmdLegicInfo(const char *Cmd) {
|
|||||||
int crc = 0, wrp = 0, wrc = 0;
|
int crc = 0, wrp = 0, wrc = 0;
|
||||||
uint8_t stamp_len = 0;
|
uint8_t stamp_len = 0;
|
||||||
uint16_t datalen = 0;
|
uint16_t datalen = 0;
|
||||||
char token_type[5] = {0, 0, 0, 0, 0};
|
char token_type[6] = {0, 0, 0, 0, 0, 0};
|
||||||
int dcf = 0;
|
int dcf = 0;
|
||||||
int bIsSegmented = 0;
|
int bIsSegmented = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user