kernel/params.c: use scnprintf() instead of sprintf()
authorChen Gang <gang.chen@asianux.com>
Tue, 20 Aug 2013 06:05:04 +0000 (15:35 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 20 Aug 2013 06:07:46 +0000 (15:37 +0930)
commitf4940ab7c5992d3fabcda039744fb7657749798e
treeea8a5bb3f5c93a0cef4c0e91ad87017f299bfdec
parentcc56ded3fdd365e07e03315379ee6612a68fd817
kernel/params.c: use scnprintf() instead of sprintf()

For some strings (e.g. version string), they are permitted to be larger
than PAGE_SIZE (although meaningless), so recommend to use scnprintf()
instead of sprintf().

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c