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)
committerDerrick Brashear <shadow@dementix.org>
Mon, 9 Apr 2012 01:16:29 +0000 (18:16 -0700)
commit4e68282e26b0c4569d25d076d54274f0da47a691
tree6def4688e17e2a59088b1733393f913ad1ee19d3
parent6d83b33324b68389d0cb8fee73f3bf3a06e9abe5
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.

Change-Id: I86f68dd2013ca8bc4c88ade78d27c4d416a9ae94
Reviewed-on: http://gerrit.openafs.org/7086
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/venus/afsio.c