]> git.michaelhowe.org Git - packages/o/openafs.git/commit
venus: Make clang happy with strlcpy use
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 30 Mar 2012 18:35:51 +0000 (19:35 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 28 May 2015 12:55:01 +0000 (08:55 -0400)
commitc2718d5ed7380f2c6d8b8621e5886b20de225c4c
tree098ae82cc0ae6b0ec49e64d3bc92518728a36473
parent9a324f14e7c98a302d7276d7c151ccef9242c9f9
venus: Make clang happy with strlcpy use

clang now expects that strlcpy will always be used to prevent overflow
of the destination string, and gives a warning if the size parameter is
based solely on the length of the source string.

Modify the BreakUpPath function so that it takes the size of the
destination string as an argument, and uses this to limit the amount of
data pasted into it.

Reviewed-on: http://gerrit.openafs.org/7086
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 4e68282e26b0c4569d25d076d54274f0da47a691)

Change-Id: I31003fa06fc331a6313ca17840dcb46f61299921
Reviewed-on: http://gerrit.openafs.org/11845
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/venus/afsio.c