Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0187f879 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ac08c264
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,7 @@




/* Worst case buffer size needed for holding an integer. */
/* Worst case buffer size needed for holding an integer. */
#define PROC_NUMBUF 10
#define PROC_NUMBUF 13


struct pid_entry {
struct pid_entry {
	int len;
	int len;