From: Andrew Morton Date: Tue, 17 Oct 2006 07:09:41 +0000 (-0700) Subject: [PATCH] PROC_NUMBUF is wrong X-Git-Tag: v2.6.19-rc3~193 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0187f879ee8d4b914e74ffa3cc5df268311fc2d2;p=linux-2.6 [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 Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/base.c b/fs/proc/base.c index 82da55b5cf..26a8f8416b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -86,7 +86,7 @@ /* Worst case buffer size needed for holding an integer. */ -#define PROC_NUMBUF 10 +#define PROC_NUMBUF 13 struct pid_entry { int len;