ref: ec7125cbc6b166d123fcd5754020986a06a9555d
parent: 615fa4b79b233395393258f0c0893b6c19ad263f
author: robs <robs>
date: Sun Sep 14 02:27:10 EDT 2008
doh\!
--- a/src/noiseprof.c
+++ b/src/noiseprof.c
@@ -119,7 +119,7 @@
size_t chans = effp->in_signal.channels;
size_t i, j, n = min(samp / chans, WINDOWSIZE - p->bufdata);
- memcpy(obuf, ibuf, n * chans); /* Pass on audio unaffected */
+ memcpy(obuf, ibuf, n * chans * sizeof(*obuf)); /* Pass on audio unaffected */
*isamp = *osamp = n * chans;
/* Collect data for every channel. */