aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 33791a2..484bb31 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -352,7 +352,7 @@ main(int argc, char **argv)
if (!screen)
errx(1, "set video mode failed");
- bufsz = 2 * delta * sizeof(int16_t);
+ bufsz = par.rchan * delta * sizeof(int16_t);
buffer = malloc(bufsz);
if (!buffer)
errx(1, "malloc failed");