remove a strncpy truncation warning

update a timing setting in the settings file
list the alsa hardware devices in the -h message
This commit is contained in:
Mike Brady
2019-05-17 10:43:54 +01:00
parent efda5c72ca
commit d9168f4aa7
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ void set_dacp_server_information(rtsp_conn_info *conn) {
if ((conn->dacp_id == NULL) || (strcmp(conn->dacp_id, dacp_server.dacp_id) != 0)) {
if (conn->dacp_id)
strncpy(dacp_server.dacp_id, conn->dacp_id, sizeof(dacp_server.dacp_id));
strncpy(dacp_server.dacp_id, conn->dacp_id, sizeof(dacp_server.dacp_id)-1);
else
dacp_server.dacp_id[0] = '\0';
dacp_server.port = 0;