shithub: aubio

Download patch

ref: 83d2948546f846257ea8464be5d85c2d25c517c8
parent: 767990ea552e77c6fb4c80e53455d64cc7adbfa0
author: Paul Brossier <piem@piem.org>
date: Fri Nov 29 01:55:04 EST 2013

src/fmat.c: use memcpy on each column

--- a/src/fmat.c
+++ b/src/fmat.c
@@ -134,7 +134,10 @@
     return;
   }
 #if HAVE_MEMCPY_HACKS
-  memcpy(t->data, s->data, t->height * t->length * sizeof(smpl_t));
+  uint_t i;
+  for (i=0; i< s->height; i++) {
+    memcpy(t->data[i], s->data[i], t->length * sizeof(smpl_t));
+  }
 #else
   uint_t i,j;
   for (i=0; i< t->height; i++) {