From: Benjamin Kaduk Date: Sat, 2 Feb 2019 18:25:35 +0000 (-0600) Subject: vol: fix vutil format-truncation nit X-Git-Tag: upstream/1.8.6_pre1^2~26 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5739775819b7c3970a977d57d6987b2eb3e85fd6;p=packages%2Fo%2Fopenafs.git vol: fix vutil format-truncation nit We need one more byte for the trailing NUL. Reviewed-on: https://gerrit.openafs.org/13462 Tested-by: BuildBot Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk (cherry picked from commit bfe912ede6f452d10cfbd5fd549f44ee027acb1b) Change-Id: I1843bd9cb3392f721068c079b69fca65f6d1a181 Reviewed-on: https://gerrit.openafs.org/13731 Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/vol/vutil.c b/src/vol/vutil.c index cafed4de6..dbdf10f86 100644 --- a/src/vol/vutil.c +++ b/src/vol/vutil.c @@ -115,7 +115,7 @@ VCreateVolume_r(Error * ec, char *partname, VolumeId volumeId, VolumeId parentId * no parent */ VolumeDiskData vol; int i, rc; - char headerName[VMAXPATHLEN], volumePath[VMAXPATHLEN]; + char headerName[VMAXPATHLEN], volumePath[VMAXPATHLEN + 1]; Device device; struct DiskPartition64 *partition; struct VolumeDiskHeader diskHeader;