LINUX: fix array indexing issue in memory statistics
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Thu, 17 Jan 2013 02:16:31 +0000 (21:16 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 18 Jan 2013 12:25:44 +0000 (04:25 -0800)
commit04ddecc1f2827463edf22857f9b19910ccc25e98
treeed31dd37d6388ad71481f62b0ae136fd8d51c52f
parenta911185b314b111c13aaf5230669f69864582897
LINUX: fix array indexing issue in memory statistics

The comma is a sequence point and i gets incremented and then used.
This results in writing past the end of the array by one (and failing
to initialize the first element as well).

Potential fix for RT ticket 131566.

Change-Id: Iabe7e78961d1f5348bca75ca5b9e6e29d8554957
Reviewed-on: http://gerrit.openafs.org/8914
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/afs/LINUX/osi_alloc.c
src/afs/LINUX24/osi_alloc.c