Fix: Need to allocate (samples + 1)
authorAuke Kok <auke-jan.h.kok@intel.com>
Sat, 2 Jun 2012 05:00:21 +0000 (22:00 -0700)
committerAuke Kok <auke-jan.h.kok@intel.com>
Sat, 2 Jun 2012 05:00:21 +0000 (22:00 -0700)
commitc2e583e5112ea1e71f85e0c5dbe09ef04ab58e52
treebbcaf4b5ac690718a7f2b1b1caacb038ebe5def3
parenta2c7561d4060a9f075339bda89e793c76f2ff6dd
Fix: Need to allocate (samples + 1)

If we don't, we'll overwrite data at the array length, and a segfault
happens at the last sample recording.
log.c