]> code.delx.au - pulseaudio/commitdiff
volume: Increase PA_SW_VOLUME_SNPRINT_DB_MAX
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 9 Mar 2014 08:56:07 +0000 (10:56 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 14 Mar 2014 14:32:26 +0000 (16:32 +0200)
10 bytes isn't enough for "-123.45 dB", including the terminating null
byte.

src/pulse/volume.h

index 7806954e03f7a8b3f8dc086b7c82f3b9b903ede2..97fc10ba0a0d10f68f2e5d4ef9fbfe925c6f23d5 100644 (file)
@@ -216,7 +216,7 @@ char *pa_volume_snprint(char *s, size_t l, pa_volume_t v);
  * any release without warning and without being considered API or ABI
  * breakage. You should not use this definition anywhere where it
  * might become part of an ABI. \since 0.9.15 */
-#define PA_SW_VOLUME_SNPRINT_DB_MAX 10
+#define PA_SW_VOLUME_SNPRINT_DB_MAX 11
 
 /** Pretty print a volume but show dB values. \since 0.9.15 */
 char *pa_sw_volume_snprint_dB(char *s, size_t l, pa_volume_t v);