diff options
author | Andrew Morton <akpm@osdl.org> | 2006-10-17 03:09:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-17 11:18:43 -0400 |
commit | 0187f879ee8d4b914e74ffa3cc5df268311fc2d2 (patch) | |
tree | 6c29aa7911a9a3ffc4497ea319d3fb6d1bfbd55c /fs/proc/base.c | |
parent | ac08c26492a0ad4d94a25bd47d5630cd38337069 (diff) |
[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>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 82da55b5cffe..26a8f8416b79 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -86,7 +86,7 @@ | |||
86 | 86 | ||
87 | 87 | ||
88 | /* Worst case buffer size needed for holding an integer. */ | 88 | /* Worst case buffer size needed for holding an integer. */ |
89 | #define PROC_NUMBUF 10 | 89 | #define PROC_NUMBUF 13 |
90 | 90 | ||
91 | struct pid_entry { | 91 | struct pid_entry { |
92 | int len; | 92 | int len; |