From 8c74b2f9da5c77171a3d9c0536a448799d38b4ce Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 2 Apr 2019 22:48:22 +0200 Subject: [PATCH] Remove compilation warning, even if it was not real issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cmdhflegic.c:269:13: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] --- client/cmdhflegic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index 867aada9a..85920e813 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -169,7 +169,7 @@ int CmdLegicInfo(const char *Cmd) { int crc = 0, wrp = 0, wrc = 0; uint8_t stamp_len = 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 bIsSegmented = 0;