From: Denis Vlasenko Date: Sun, 17 Sep 2006 15:06:34 +0000 (-0000) Subject: mount: nfs_strerror's static buffer was bigger than needed. X-Git-Tag: 1_4_0~673 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0975199bea22a1f4f99f496ee32c3fac854bed5;p=oweals%2Fbusybox.git mount: nfs_strerror's static buffer was bigger than needed. --- 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)