Skip to content
Commit de9e007d authored by Linus Torvalds's avatar Linus Torvalds
Browse files

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: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35f349ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment