--- profiles/audio/avctp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 70a3e40b2..ae53587ad 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1181,8 +1181,7 @@ static int uinput_create(char *name) } memset(&dev, 0, sizeof(dev)); - if (name) - strncpy(dev.name, name, UINPUT_MAX_NAME_SIZE - 1); + snprintf(dev.name, sizeof(dev.name), "Bluetooth Audio/Video Remote Control%s%s", name ? " " : "", name ? name : ""); dev.id.bustype = BUS_BLUETOOTH; dev.id.vendor = 0x0000; -- 2.11.0