acp: improve debug of channel map

Increase the size of the channel_map debug printf buffer.
Use a safer version of the snprintf that avoids buffer overruns.

See #1781
This commit is contained in:
Wim Taymans 2021-11-04 16:41:32 +01:00
parent efd8ac25e3
commit 86ca0f8466
3 changed files with 41 additions and 4 deletions

View file

@ -29,7 +29,7 @@ extern "C" {
#define PA_CHANNELS_MAX 64
#define PA_CHANNEL_MAP_SNPRINT_MAX 336
#define PA_CHANNEL_MAP_SNPRINT_MAX (PA_CHANNELS_MAX * 32)
typedef enum pa_channel_map_def {
PA_CHANNEL_MAP_AIFF,