mount: nfs_strerror's static buffer was bigger than needed.

This commit is contained in:
Denis Vlasenko 2006-09-17 15:06:34 +00:00
parent 9c99b62b9e
commit c0975199be

View File

@ -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)