fstrace: Don't read uninitialised data
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 11:49:13 +0000 (11:49 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 7 Mar 2013 16:08:48 +0000 (08:08 -0800)
commit908105fe8d51551e45692de4e145022138a0356c
tree5b6cbf2e9065fdb37bc4dcdd85095c9ebb1108a9
parentd81271640891fb8c364e8625e7a9f6ede21572f4
fstrace: Don't read uninitialised data

The pftix variable points to the next free element in the
printfTypes array, so when we iterate through that array to
read that data back, we should stop when our iterator equals
pftix, not when it is greater than it.

Caught by coverity (#986013)

Change-Id: Ie08ebdd28cdde6647e91da5c5f67512096ecb34c
Reviewed-on: http://gerrit.openafs.org/9442
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/venus/fstrace.c