shithub: neindaw

Download patch

ref: 979c85f07738f2bb01f58074613b19996ffc7ee8
parent: 8f27ffaf6569d4284b370a25377e6dd86edfa563
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed May 13 08:17:58 EDT 2020

piper: sizeof

--- a/piper/piper.c
+++ b/piper/piper.c
@@ -197,7 +197,7 @@
 		qlock(&grouplock);
 		for (i = 0; i < numgroups; i++) {
 			for (j = 0; j < groups[i].numinst; j++) {
-				if (readn(groups[i].inst[j].data, x, Bufframes*sizeof(float)) < 1)
+				if (readn(groups[i].inst[j].data, x, Bufframes*sizeof(*x)) < 1)
 					break;
 				for (n = 0; n < Bufframes; n++)
 					out[n] += x[n];