tsmf: Prevent string overflow and unterminated strings
authorOndrej Holy <oholy@redhat.com>
Tue, 19 Dec 2017 11:21:34 +0000 (12:21 +0100)
committerOndrej Holy <oholy@redhat.com>
Tue, 19 Dec 2017 11:21:34 +0000 (12:21 +0100)
commite2f9a08107548705a13e9f007814c4ad426aec48
tree53c710755ace9883658e6560b602a92a4d6acda9
parent0389cb129ed83de3b6ea31ed944dfc9f21ab5570
tsmf: Prevent string overflow and unterminated strings

Device variable can overflow, or be unterminated. Replace strcpy
by strncpy and be sure that the string is terminated (sizeof() - 1).
channels/tsmf/client/alsa/tsmf_alsa.c
channels/tsmf/client/oss/tsmf_oss.c
channels/tsmf/client/pulse/tsmf_pulse.c