diff options
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/cpulimit.c | 2 | ||||
-rw-r--r-- | src/daemon/dumpmodules.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c index d4ac1d86..6536f468 100644 --- a/src/daemon/cpulimit.c +++ b/src/daemon/cpulimit.c @@ -130,7 +130,7 @@ static void signal_handler(int sig) { time(&now); #ifdef PRINT_CPU_LOAD - snprintf(t, sizeof(t), "Using %0.1f%% CPU\n", (double)CPUTIME_INTERVAL_SOFT/(now-last_time)*100); + pa_snprintf(t, sizeof(t), "Using %0.1f%% CPU\n", (double)CPUTIME_INTERVAL_SOFT/(now-last_time)*100); write_err(t); #endif diff --git a/src/daemon/dumpmodules.c b/src/daemon/dumpmodules.c index 6743622a..cbbf94f3 100644 --- a/src/daemon/dumpmodules.c +++ b/src/daemon/dumpmodules.c @@ -35,6 +35,7 @@ #include <pulse/util.h> #include <pulsecore/modinfo.h> +#include <pulsecore/core-util.h> #include "dumpmodules.h" @@ -93,7 +94,7 @@ static int is_preloaded(const char *name) { if (l->address) continue; - snprintf(buf, sizeof(buf), "%s", l->name); + pa_snprintf(buf, sizeof(buf), "%s", l->name); if ((e = strrchr(buf, '.'))) *e = 0; @@ -137,7 +138,7 @@ void pa_dump_modules(pa_daemon_conf *c, int argc, char * const argv[]) { if (strlen(l->name) <= sizeof(PREFIX)-1 || strncmp(l->name, PREFIX, sizeof(PREFIX)-1)) continue; - snprintf(buf, sizeof(buf), "%s", l->name); + pa_snprintf(buf, sizeof(buf), "%s", l->name); if ((e = strrchr(buf, '.'))) *e = 0; |