Searched hist:de9e007d9105bf8fa613a89810feff32a43add03 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | sysctl.c | diff de9e007d9105bf8fa613a89810feff32a43add03 Sat Dec 31 19:00:29 CST 2005 Linus Torvalds <torvalds@g5.osdl.org> sysctl: make sure to terminate strings with a NUL
This is a slightly more complete fix for the previous minimal sysctl string fix. It always terminates the returned string with a NUL, even if the full result wouldn't fit in the user-supplied buffer.
The returned length is the full untruncated length, so that you can tell when truncation has occurred.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|