summaryrefslogtreecommitdiffstats
path: root/hcid/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/device.c')
-rw-r--r--hcid/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/device.c b/hcid/device.c
index f29e46a9..c7e8f509 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -645,7 +645,7 @@ int set_device_name(uint16_t dev_id, const char *name)
return -err;
}
- memcpy(dev->name, name, 248);
+ strncpy((char *) dev->name, name, 248);
update_ext_inquiry_response(dd, dev);