mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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
This commit is contained in:
parent
95af1e616b
commit
9ac93287a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue