The following commit has been merged in the openafs-stable-1_8_x branch:
commit 232bd12b070e1fbeb173e31251e65e63a0d1f959
Author: Andrew Deason <[email protected]>
Date:   Tue Aug 7 17:27:24 2018 -0500

    Avoid format truncation warnings
    
    With gcc 7.3, we start getting several warnings like the following:
    
    vutil.c: In function ‘VWalkVolumeHeaders’:
    vutil.c:860:34: error: ‘%s’ directive output may be truncated writing up to 
255 bytes into a region of size 63 [-Werror=format-truncation=]
          snprintf(name, VMAXPATHLEN, "%s" OS_DIRSEP "%s", partpath, 
dentry->d_name);
    
    Most or all of these truncations should be okay, but increase the size
    of the relevant buffers so we can build with warning checking turned
    on.
    
    Reviewed-on: https://gerrit.openafs.org/13274
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Tested-by: BuildBot <[email protected]>
    (cherry picked from commit 2daa413e3ec061e0653adbd1d6549f15e0659a62)
    
    Change-Id: I61ae1ddae4b2d84147198a1dccb280d0da100a0b
    Reviewed-on: https://gerrit.openafs.org/13459
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Stephan Wiesand <[email protected]>

 src/aklog/klog.c        |    2 +-
 src/vol/voldefs.h       |    2 +-
 src/volser/restorevol.c |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to