From 11874d78e076f2255fc3229a8ad89c164762bcb8 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sat, 17 Aug 2019 15:51:58 +0200 Subject: New upstream version 2.0.2 --- bjnp-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bjnp-commands.c') diff --git a/bjnp-commands.c b/bjnp-commands.c index 3137bfb..fbf0aa8 100644 --- a/bjnp-commands.c +++ b/bjnp-commands.c @@ -37,7 +37,7 @@ bjnp_set_command_header(uint8_t dev_type, uint16_t seq_no, uint16_t session_id, * Set command buffer with command code, session_id and lenght of payload * Returns: sequence number of command */ - strncpy(cmd->header.BJNP_id, BJNP_STRING, sizeof(cmd->header.BJNP_id)); + memcpy(cmd->header.BJNP_id, BJNP_STRING, sizeof(cmd->header.BJNP_id)); cmd->header.dev_type = dev_type; cmd->header.cmd_code = cmd_code; cmd->header.unknown1 = htons(0); -- cgit v1.2.3