summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-11-04 14:11:53 +0000
committerLennart Poettering <lennart@poettering.net>2007-11-04 14:11:53 +0000
commit9ac93287a80cf970ccec399a3acaa9752b0193da (patch)
tree5ee11ec1a42abe9729c5b51f0d68d60edea7e25b /src/pulsecore/core-util.c
parent95af1e616b061142da606637d42d493f9918cfea (diff)
Properly terminate pa_readlink() strings. Patch from Sjoerd Simons. Closes #149
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2019 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/core-util.c')
-rw-r--r--src/pulsecore/core-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 1a62bce4..fb032f23 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -1562,7 +1562,7 @@ char *pa_readlink(const char *p) {
}
if ((size_t) n < l-1) {
- c[l-1] = 0;
+ c[n] = 0;
return c;
}