diff options
author | Mathias Nyman <mathias.nyman@nokia.com> | 2010-04-21 13:52:52 +0300 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2010-04-21 13:41:14 +0200 |
commit | e925018786d85fb3aed3b62a0a89309f9a7d5e4f (patch) | |
tree | 9c892c1012241c61d354bb39d28c1c1588a38184 /libudev/libudev.pc.in | |
parent | c51d2f2746a54c8418965f22d1882b1ac3a18ed8 (diff) |
remove buffer-overrun risk in readlink call
readlink does not write a nul character to the end of the
string it returns. Therefore ask for one fewer character
than the buffer size so there's always room for an extra \0.
Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Diffstat (limited to 'libudev/libudev.pc.in')
0 files changed, 0 insertions, 0 deletions