aklog: Fix improper use of readlink
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 09:16:10 +0000 (09:16 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 7 Mar 2013 15:51:14 +0000 (07:51 -0800)
commit2fac53522e7ef5b3a376e191bffdc1f6784e6995
treea8df33c969130bf73edb143390ec3b1ce9dba0cd
parent6a54bf735871d93bc77e5cf166e506f4f2423d0a
aklog: Fix improper use of readlink

readlink doesn't NUL terminate its return string, so it is up to
us to do so.

Caught by coverity (#985739)

Change-Id: Ifb858d628845bd963928e25834e540bbb3a187c8
Reviewed-on: http://gerrit.openafs.org/9347
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