From 9e0b6cc2b063749832f1bf49109989917e0a0226 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 21 Jan 2010 18:24:22 +0000 Subject: Fixed: incomplete initialization of the array in imAnalyzeMeasureArea. --- src/process/im_analyze.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/process') diff --git a/src/process/im_analyze.cpp b/src/process/im_analyze.cpp index 02748f0..551f043 100644 --- a/src/process/im_analyze.cpp +++ b/src/process/im_analyze.cpp @@ -2,7 +2,7 @@ * \brief Image Analysis * * See Copyright Notice in im_lib.h - * $Id: im_analyze.cpp,v 1.3 2009/11/20 18:59:08 scuri Exp $ + * $Id: im_analyze.cpp,v 1.4 2010/01/21 18:24:23 scuri Exp $ */ @@ -402,7 +402,8 @@ int imAnalyzeFindRegions(const imImage* image, imImage* NewImage, int connect, i void imAnalyzeMeasureArea(const imImage* image, int* data_area, int region_count) { imushort* img_data = (imushort*)image->data[0]; - memset(data_area, 0, region_count*sizeof(imushort)); + + memset(data_area, 0, region_count*sizeof(int)); for (int i = 0; i < image->count; i++) { -- cgit v1.2.3