svn commit: trunk/busybox/util-linux
vda at busybox.net
vda at busybox.net
Sun Sep 17 15:06:34 UTC 2006
Author: vda
Date: 2006-09-17 08:06:34 -0700 (Sun, 17 Sep 2006)
New Revision: 16136
Log:
mount: nfs_strerror's static buffer was bigger than needed.
Modified:
trunk/busybox/util-linux/mount.c
Changeset:
Modified: trunk/busybox/util-linux/mount.c
===================================================================
--- trunk/busybox/util-linux/mount.c 2006-09-17 15:05:31 UTC (rev 16135)
+++ trunk/busybox/util-linux/mount.c 2006-09-17 15:06:34 UTC (rev 16136)
@@ -515,7 +515,7 @@
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)
More information about the busybox-cvs
mailing list