mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
mount: nfs_strerror's static buffer was bigger than needed.
This commit is contained in:
parent
9c99b62b9e
commit
c0975199be
@ -515,7 +515,7 @@ static const struct {
|
|||||||
static char *nfs_strerror(int status)
|
static char *nfs_strerror(int status)
|
||||||
{
|
{
|
||||||
int i;
|
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++) {
|
for (i = 0; nfs_errtbl[i].stat != -1; i++) {
|
||||||
if (nfs_errtbl[i].stat == status)
|
if (nfs_errtbl[i].stat == status)
|
||||||
|
Loading…
Reference in New Issue
Block a user