Support compilation in WSL Ubuntu 20.04 LTS. Fix some warnings.

This commit is contained in:
Sorgelig
2021-10-07 03:08:56 +08:00
parent a215fb36bb
commit 7abbf7f8f4
12 changed files with 37 additions and 40 deletions

View File

@@ -33,7 +33,7 @@ static void setFilter()
has_filter = spi_uio_cmd(UIO_SET_AFILTER);
if (!has_filter) return;
sprintf(filter_cfg_path, AFILTER_DIR"/%s", filter_cfg + 1);
snprintf(filter_cfg_path, sizeof(filter_cfg_path), AFILTER_DIR"/%s", filter_cfg + 1);
if(filter_cfg[0]) printf("\nLoading audio filter: %s\n", filter_cfg_path);
if (filter_cfg[0] && FileOpen(&f, filter_cfg_path))