venus: appease gcc8's -Wformat-string 71/13471/2
authorBenjamin Kaduk <kaduk@mit.edu>
Sat, 2 Feb 2019 23:09:36 +0000 (17:09 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 1 Mar 2019 13:55:11 +0000 (08:55 -0500)
Interestingly, even before this commit, the buffer size was larger
than what the kernel would accept.  Since the kernel does its own
length checking, it's simplest to just allow slightly larger requests
here and have them fail later.

Change-Id: I9ed636e4ad025240cb27b3cc066a8f2a72959396
Reviewed-on: https://gerrit.openafs.org/13471
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/venus/fs.c

index 1ef37b1..52b5df7 100644 (file)
@@ -761,7 +761,7 @@ QuickPrintSpace(VolumeStatus * status, char *name, int human)
 static char *
 AclToString(struct Acl *acl)
 {
-    static char mydata[AFS_PIOCTL_MAXSIZE];
+    static char mydata[AFS_PIOCTL_MAXSIZE + 24];
     char tstring[AFS_PIOCTL_MAXSIZE];
     char dfsstring[AFS_PIOCTL_MAXSIZE];
     struct AclEntry *tp;