From db0b199bdf4f0c16a90cd89a05f4d6112f215b1e Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Sat, 2 Feb 2019 17:09:36 -0600 Subject: [PATCH] venus: appease gcc8's -Wformat-string 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 Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk (cherry picked from commit dff81f1b78fecc54f5af91f7d728925ffca62d2c) Change-Id: Ie19d887abebdd3603a04c06723f5cb750eb654f8 Reviewed-on: https://gerrit.openafs.org/13740 Reviewed-by: Andrew Deason Reviewed-by: Marcio Brito Barbosa Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- src/venus/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/venus/fs.c b/src/venus/fs.c index 39f266a2c..012ecfd52 100644 --- a/src/venus/fs.c +++ b/src/venus/fs.c @@ -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; -- 2.39.5