diff options
author | Didier Raboud <odyx@debian.org> | 2019-08-17 16:05:35 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2019-08-17 16:05:35 +0200 |
commit | 31ee5a589468947f29f8fcf071d270330e4cbaaf (patch) | |
tree | 1a0e0291b14a29dc5cb9651b38845c312dffb38e /bjnp-commands.c | |
parent | 88742ac88c7b05f966dc98f9ed36e2ec9ee20d6e (diff) | |
parent | 11874d78e076f2255fc3229a8ad89c164762bcb8 (diff) |
Update upstream source from tag 'upstream/2.0.2'
Update to 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); |