From cd16e3878f590a9235f79adab777b575129cc978 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 24 May 2018 15:47:33 +0200 Subject: [PATCH] midi: Fix compiler warning from string operation --- profiles/midi/midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c index fdc1c007d..1ee5cb16f 100644 --- a/profiles/midi/midi.c +++ b/profiles/midi/midi.c @@ -304,7 +304,7 @@ static int midi_accept(struct btd_service *service) if (device_name_known(device)) device_get_name(device, device_name, sizeof(device_name)); else - strncpy(device_name, addr, sizeof(addr)); + strncpy(device_name, addr, sizeof(device_name)); /* ALSA Sequencer Client and Port Setup */ err = snd_seq_open(&midi->seq_handle, "default", SND_SEQ_OPEN_DUPLEX, 0); -- 2.47.3