From: Linus Torvalds Date: Sun, 1 Jan 2006 01:00:29 +0000 (-0800) Subject: sysctl: make sure to terminate strings with a NUL X-Git-Tag: v2.6.15~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9e007d9105bf8fa613a89810feff32a43add03;p=pandora-kernel.git 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 --- Reading git-diff-tree failed