1 From: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
2 Date: Sun, 9 Mar 2014 10:50:23 +0200
3 Subject: volume: Increase PA_SW_VOLUME_SNPRINT_DB_MAX
5 10 bytes isn't enough for "-123.45 dB", including the terminating null
8 Change-Id: I865060befd01d3dde69556c1f90b7de55350501a
9 Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
11 src/pulse/volume.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 diff --git a/src/pulse/volume.h b/src/pulse/volume.h
15 index 3ffb573..cfdc85c 100644
16 --- a/src/pulse/volume.h
17 +++ b/src/pulse/volume.h
18 @@ -216,7 +216,7 @@ char *pa_volume_snprint(char *s, size_t l, pa_volume_t v);
19 * any release without warning and without being considered API or ABI
20 * breakage. You should not use this definition anywhere where it
21 * might become part of an ABI. \since 0.9.15 */
22 -#define PA_SW_VOLUME_SNPRINT_DB_MAX 10
23 +#define PA_SW_VOLUME_SNPRINT_DB_MAX 11
25 /** Pretty print a volume but show dB values. \since 0.9.15 */
26 char *pa_sw_volume_snprint_dB(char *s, size_t l, pa_volume_t v);