cgroups: save space for the terminator
authorDan Carpenter <[email protected]>
Wed, 11 Aug 2010 01:02:54 +0000 (18:02 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Aug 2010 15:59:18 +0000 (08:59 -0700)
commite400c28524af2d344b1663b27bf28984fa959a0e
tree00be68cbb87be859edd67da60dfd12506879fe01
parent2b24706a798d07cf40534d7763f608045e42e15f
cgroups: save space for the terminator

The original code didn't leave enough space for a NULL terminator.  These
strings are copied with strcpy() into fixed length buffers in
cgroup_root_from_opts().

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]>
Reviewd-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Ben Blum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/cgroup.c