diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-02-13 11:05:20 +0100 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-05-13 13:55:58 +0200 |
commit | 93ca785e9b7e295deb3be7406b37de2c61ef2579 (patch) | |
tree | 27da50b4a6fa51c7a3a5737a67687077bb003533 /plugins/alsa/alsa-utils-dump.c | |
parent | 6c627f8650b88b19704dd4e513fe7fff701c00c1 (diff) |
alsa-utils-dump: added missing ending null char
For some reason, snd_pcm_hw_params_dump does not
add a null char at the end of the dumped string.
This made weird chars appear in the console
Change-Id: I6f2895e730e9bbd0f78139505f9b9e68dd164f2e
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/alsa/alsa-utils-dump.c')
-rw-r--r-- | plugins/alsa/alsa-utils-dump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/alsa/alsa-utils-dump.c b/plugins/alsa/alsa-utils-dump.c index 79059ee..4bcc294 100644 --- a/plugins/alsa/alsa-utils-dump.c +++ b/plugins/alsa/alsa-utils-dump.c @@ -153,6 +153,7 @@ PUBLIC void AlsaDumpPcmParams(SoftMixerT *mixer, snd_pcm_hw_params_t *pcmHwParam snd_output_buffer_open(&output); snd_pcm_hw_params_dump(pcmHwParams, output); + snd_output_putc(output,'\0'); snd_output_buffer_string(output, &buffer); AFB_ApiDebug(mixer->api, "%s:\n--------------\n%s\n-------------",__func__, buffer); snd_output_close(output); |