提交 0187f879 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

[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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ac08c264
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册