]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
venus: appease gcc8's -Wformat-string
authorBenjamin Kaduk <kaduk@mit.edu>
Sat, 2 Feb 2019 23:09:36 +0000 (17:09 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Sun, 9 Feb 2020 17:50:04 +0000 (12:50 -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.

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>
(cherry picked from commit dff81f1b78fecc54f5af91f7d728925ffca62d2c)

Change-Id: Ie19d887abebdd3603a04c06723f5cb750eb654f8
Reviewed-on: https://gerrit.openafs.org/13740
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/venus/fs.c

index 39f266a2c3e918beada72ddaa41ed084b8a566c3..012ecfd52765ed1b4fc35b5109b82c789b2aa77f 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;