aklog: Avoid overflows in get_afs_mountpoint
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 12:09:42 +0000 (12:09 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sun, 10 Mar 2013 03:16:14 +0000 (19:16 -0800)
commit19d2683d711f95165adc16fac765bb4a31c99043
tree59a21cdc4ac3ecf661fe4a54e498009551b0939e
parent788a6b67a088e2565c3b47ecb6e594a7b15f2757
aklog: Avoid overflows in get_afs_mountpoint

When working with the fixed length cellname buffer, use
strlcat and strlcpy rather than strcat and strcpy.

Caught by coverity (#985763)

Change-Id: Idfb3a0562d4028f5d1aa134b7ab0b5fa2dd60edb
Reviewed-on: http://gerrit.openafs.org/9445
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/aklog/aklog.c