[PATCH] PROC_NUMBUF is wrong
authorAndrew Morton <akpm@osdl.org>
Tue, 17 Oct 2006 07:09:41 +0000 (00:09 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 17 Oct 2006 15:18:43 +0000 (08:18 -0700)
commit0187f879ee8d4b914e74ffa3cc5df268311fc2d2
tree6c29aa7911a9a3ffc4497ea319d3fb6d1bfbd55c
parentac08c26492a0ad4d94a25bd47d5630cd38337069
[PATCH] PROC_NUMBUF is wrong

Actually, the decimal representation of a 32-bit signed number can take 12
bytes, including the \0.

And then some code adds a \n as well, so let's give it 13 bytes.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c