Skip to content

Commit 8d91757

Browse files
committed
fix CID 470420
1 parent a0ef81d commit 8d91757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/playback/jack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void * audio_play_jack_init(const char *cfg)
191191
goto error;
192192
}
193193
} else if (strstr(item, "name=") == item) {
194-
strcpy(client_name, item + strlen("name="));
194+
snprintf_ch(client_name, "%s", strchr(item, '=') + 1);
195195
} else { // the rest is the device name
196196
source_name = cfg + (item - dup);
197197
break;

0 commit comments

Comments
 (0)