diff options
author | Denis Vlasenko | 2006-09-17 15:06:34 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-17 15:06:34 +0000 |
commit | c0975199bea22a1f4f99f496ee32c3fac854bed5 (patch) | |
tree | 35314b106d48048849631700e6a112b36d91a923 /util-linux | |
parent | 9c99b62b9eec826065496f895ae9eaece08ecc88 (diff) | |
download | busybox-c0975199bea22a1f4f99f496ee32c3fac854bed5.zip busybox-c0975199bea22a1f4f99f496ee32c3fac854bed5.tar.gz |
mount: nfs_strerror's static buffer was bigger than needed.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 5539f1e..57d2d04 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) |