summaryrefslogtreecommitdiff
path: root/udev/udev-watch.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@nokia.com>2010-04-21 13:52:52 +0300
committerMartin Pitt <martin.pitt@ubuntu.com>2010-04-21 13:41:14 +0200
commite925018786d85fb3aed3b62a0a89309f9a7d5e4f (patch)
tree9c892c1012241c61d354bb39d28c1c1588a38184 /udev/udev-watch.c
parentc51d2f2746a54c8418965f22d1882b1ac3a18ed8 (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 'udev/udev-watch.c')
0 files changed, 0 insertions, 0 deletions