summaryrefslogtreecommitdiff
path: root/bjnp-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'bjnp-commands.c')
-rw-r--r--bjnp-commands.c2
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);