diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-07-25 16:23:03 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-07-25 16:23:03 +0000 |
commit | 929526de33b60ba48e47071be60619616661c97f (patch) | |
tree | 581112fa58632254fc22c69893605fa6d1b815e1 /src/pulse/volume.c | |
parent | 8e838381541d090b5bfd0d68acefd2d6676f0d64 (diff) |
Convert most snprintf() calls to pa_snprintf()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1534 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse/volume.c')
-rw-r--r-- | src/pulse/volume.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulse/volume.c b/src/pulse/volume.c index feb33f07..8bba834d 100644 --- a/src/pulse/volume.c +++ b/src/pulse/volume.c @@ -29,6 +29,7 @@ #include <stdio.h> #include <string.h> +#include <pulsecore/core-util.h> #include "volume.h" int pa_cvolume_equal(const pa_cvolume *a, const pa_cvolume *b) { @@ -125,7 +126,7 @@ char *pa_cvolume_snprint(char *s, size_t l, const pa_cvolume *c) { *(e = s) = 0; for (channel = 0; channel < c->channels && l > 1; channel++) { - l -= snprintf(e, l, "%s%u: %3u%%", + l -= pa_snprintf(e, l, "%s%u: %3u%%", first ? "" : " ", channel, (c->values[channel]*100)/PA_VOLUME_NORM); |