Diff between 3778998ce97c0f7656e34a2fa3e0908fee48455f and cd16e3878f590a9235f79adab777b575129cc978
Changed Files
| File | Additions | Deletions | Status |
| profiles/midi/midi.c | +1 | -1 | modified |
Full Patch
diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c
index fdc1c00..1ee5cb1 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);