diff options
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/device.c | 2 |
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); |