summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/shm.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-07-25 16:23:03 +0000
committerLennart Poettering <lennart@poettering.net>2007-07-25 16:23:03 +0000
commit929526de33b60ba48e47071be60619616661c97f (patch)
tree581112fa58632254fc22c69893605fa6d1b815e1 /src/pulsecore/shm.c
parent8e838381541d090b5bfd0d68acefd2d6676f0d64 (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/pulsecore/shm.c')
-rw-r--r--src/pulsecore/shm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
index 8c7fb4db..8ef02f61 100644
--- a/src/pulsecore/shm.c
+++ b/src/pulsecore/shm.c
@@ -42,6 +42,7 @@
#include <pulsecore/core-error.h>
#include <pulsecore/log.h>
#include <pulsecore/random.h>
+#include <pulsecore/core-util.h>
#include <pulse/xmalloc.h>
#include "shm.h"
@@ -53,7 +54,7 @@
#define MAX_SHM_SIZE (1024*1024*20)
static char *segment_name(char *fn, size_t l, unsigned id) {
- snprintf(fn, l, "/pulse-shm-%u", id);
+ pa_snprintf(fn, l, "/pulse-shm-%u", id);
return fn;
}