projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95af1e6
)
Properly terminate pa_readlink() strings. Patch from Sjoerd Simons. Closes #149
author
Lennart Poettering
<lennart@poettering.net>
Sun, 4 Nov 2007 14:11:53 +0000
(14:11 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 4 Nov 2007 14:11:53 +0000
(14:11 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2019
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/core-util.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/core-util.c
b/src/pulsecore/core-util.c
index
1a62bce
..
fb032f2
100644
(file)
--- 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;
}