From 0acd466b38ffb36f8a80fbb1d60b9aebb48c6a28 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Tue, 9 Dec 2008 13:14:07 -0800 Subject: [PATCH] --- yaml --- r: 119805 b: refs/heads/master c: 361371201b60ffd686a694c848c1d5ad6061725f h: refs/heads/master i: 119803: 9b26c42ad2910e81fedeab29db2620ac27326059 v: v3 --- [refs] | 2 +- trunk/arch/um/drivers/mconsole_kern.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 19672a0a9380..d3785554afd2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 69fc208be5b7eb18d22d1eca185b201400fd5ffc +refs/heads/master: 361371201b60ffd686a694c848c1d5ad6061725f diff --git a/trunk/arch/um/drivers/mconsole_kern.c b/trunk/arch/um/drivers/mconsole_kern.c index 19d579d74d27..8f44ebb0dec8 100644 --- a/trunk/arch/um/drivers/mconsole_kern.c +++ b/trunk/arch/um/drivers/mconsole_kern.c @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include #include #include @@ -785,7 +787,7 @@ static int __init mconsole_init(void) /* long to avoid size mismatch warnings from gcc */ long sock; int err; - char file[256]; + char file[UNIX_PATH_MAX]; if (umid_file_name("mconsole", file, sizeof(file))) return -1;