Unix CM: Make rootVolume array big enough
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 09:19:13 +0000 (09:19 +0000)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 23 Aug 2015 21:42:19 +0000 (17:42 -0400)
commit86053beac56629f7bdbc2695fda560e0410e430f
tree285bd76c46f7aa2d9a33a5fb8fcb9dfe114d231c
parent06caaaa6d089e0c0393e45c43b525d202c9c7a24
Unix CM: Make rootVolume array big enough

In afs_CheckRootVolume, the local rootVolumeName array needs to
be large enough to hold the contents of the global
afs_rootVolumeName string, which is 64 characters long. Fix our
local array to be the same length by using a new defined constant
MAXROOTVOLNAMELEN.

Caught by coverity (#985758)

Change-Id: I4c926b94efb40d7107e2d7160ade0ba8b381004e
Reviewed-on: http://gerrit.openafs.org/9348
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs.h
src/afs/afs_daemons.c
src/afs/afs_prototypes.h