From 230f617e5099cefb3f7ae60d49318abe459797fa Mon Sep 17 00:00:00 2001 From: vda Date: Sun, 17 Sep 2006 15:06:34 +0000 Subject: mount: nfs_strerror's static buffer was bigger than needed. git-svn-id: svn://busybox.net/trunk/busybox@16136 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- util-linux/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux/mount.c b/util-linux/mount.c index 5539f1e02..57d2d0430 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -515,7 +515,7 @@ static const struct { static char *nfs_strerror(int status) { int i; - static char buf[256]; + static char buf[sizeof("unknown nfs status return value: ") + sizeof(int)*3]; for (i = 0; nfs_errtbl[i].stat != -1; i++) { if (nfs_errtbl[i].stat == status) -- cgit v1.2.3-55-g6feb