From bf194646e7a4bd348fd6033b183a1fd78a0aaef1 Mon Sep 17 00:00:00 2001 From: James Slocum Date: Thu, 3 Oct 2013 21:16:39 -0400 Subject: Fixed 2 bugs. Fixed a segfault, and read error. 1) the for(t=0; t= block_size; t-=block_size, a+=advance){ b=mempcpy(b, a, block_size); } - if(t>array_bytes) { - b=mempcpy(b, a, t-array_bytes); + if(t) { + b=mempcpy(b, a, t); } gettimeofday(&endtime, NULL); } else { /* dumb test */ -- cgit v1.2.3