From b041db3c1a662d374737e357905f7e2def104326 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 18 Sep 2012 11:54:38 +0000 Subject: [PATCH] make this operate the same but be slightly less confusing SVN revision: 76812 --- src/bin/e_thumb_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/e_thumb_main.c b/src/bin/e_thumb_main.c index dee3229de..72f22525e 100644 --- a/src/bin/e_thumb_main.c +++ b/src/bin/e_thumb_main.c @@ -433,8 +433,9 @@ _e_thumb_generate(E_Thumb *eth) 4, 11, 2, 13 }; - data3 = malloc(ww * hh * sizeof(unsigned int)); - memcpy(data3, data, ww * hh * sizeof(unsigned int)); + /* ww = hh = 1 here */ + data3 = malloc(sizeof(unsigned int)); + memcpy(data3, data, sizeof(unsigned int)); // sort_id n = 0; #define A(v) (((v) >> 24) & 0xff)