diff options
author | Didier Raboud <odyx@debian.org> | 2019-08-17 15:51:58 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2019-08-17 15:51:58 +0200 |
commit | 11874d78e076f2255fc3229a8ad89c164762bcb8 (patch) | |
tree | 4a4ae291477a64c13bb1636fecbc54b5570d1c33 /bjnp-commands.c | |
parent | 4df423e3ae931fafca5cea41952059674b7f4846 (diff) |
New upstream version 2.0.2
Diffstat (limited to 'bjnp-commands.c')
-rw-r--r-- | bjnp-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |