]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
strict_strto* is not strict enough
authorPavel Machek <pavel@suse.cz>
Tue, 6 Jan 2009 22:40:53 +0000 (14:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:12 +0000 (15:59 -0800)
commite899aa823ad74860a17b541b0ad38f513728923d
tree019c4a1b7baafe9967aa50cc49e809c11d39f944
parentff083c8372f6312bb3a8c7f7b748920aeeb210c9
strict_strto* is not strict enough

It decodes "\n" as 0, which is bad, because stray echo into backlight
will turn your backlight off, etc...

Signed-off-by: Pavel Machek <pavel@suse.cz>
Cc: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c