From 540997afba223a1b9368cbdc3e4e0ff1003d1e37 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 22 Feb 2013 11:29:47 -0800 Subject: [PATCH] sixtap_predict_test: fix sizes passed to memset src_/dst_/dst_c_ are heap allocated, use the allocation size rather than sizeof(var) Change-Id: I3335ad487dc9b154cdf212891d1d74c812eff060 --- test/sixtap_predict_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sixtap_predict_test.cc b/test/sixtap_predict_test.cc index 2d4581dc0..9ab7a7347 100644 --- a/test/sixtap_predict_test.cc +++ b/test/sixtap_predict_test.cc @@ -61,9 +61,9 @@ class SixtapPredictTest : public PARAMS(int, int, sixtap_predict_fn_t) { width_ = GET_PARAM(0); height_ = GET_PARAM(1); sixtap_predict_ = GET_PARAM(2); - memset(src_, 0, sizeof(src_)); - memset(dst_, 0, sizeof(dst_)); - memset(dst_c_, 0, sizeof(dst_c_)); + memset(src_, 0, kSrcSize); + memset(dst_, 0, kDstSize); + memset(dst_c_, 0, kDstSize); } int width_;