]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Avoid gcc warning
authorChristof Hanke <christof.hanke@rzg.mpg.de>
Mon, 18 Dec 2017 15:58:39 +0000 (16:58 +0100)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 9 Feb 2018 14:34:56 +0000 (09:34 -0500)
commit4988628a2e41955951a49ea0032cabe13f9337d3
treeb2b9a5378486e64b5cce2050b8ffc89653370888
parent35636bd9e32015bc10e09ccbb34a71a1459cdc4b
Avoid gcc warning

When using the configure option --enable-checking with gcc 7.2.1,
the compilation fails with

vutil.c:860:20: error: ā€˜%s’ directive writing up to 255 bytes into \
a region of size 63 [-Werror=format-overflow=]

This can be seen in the logs of the openSUSE Tumbleweed builder
for e.g. build 2368.
Avoid this warning by using snprintf which is provided by libroken
for all platforms.

Reviewed-on: https://gerrit.openafs.org/12813
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit fd4eaebb60dbefc27be98015fee23a3cf5d9752d)

Change-Id: I3be14f6f1228fd09f036da7ff4f1505c65e49406
Reviewed-on: https://gerrit.openafs.org/12897
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/vol/vutil.c