summaryrefslogtreecommitdiffstats
path: root/tools/gui/ring-buffer.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:17:53 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-12 16:17:53 +0200
commitc48496b50a72575438f87da69080a48e0878a121 (patch)
treec42df1ab4ba1907afc600dbde81852873801c859 /tools/gui/ring-buffer.c
parentef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438 (diff)
downloaduca-c48496b50a72575438f87da69080a48e0878a121.tar.gz
uca-c48496b50a72575438f87da69080a48e0878a121.tar.bz2
uca-c48496b50a72575438f87da69080a48e0878a121.tar.xz
uca-c48496b50a72575438f87da69080a48e0878a121.zip
Control memory size via command line
Diffstat (limited to 'tools/gui/ring-buffer.c')
-rw-r--r--tools/gui/ring-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gui/ring-buffer.c b/tools/gui/ring-buffer.c
index 56c7620..5915d2a 100644
--- a/tools/gui/ring-buffer.c
+++ b/tools/gui/ring-buffer.c
@@ -13,7 +13,7 @@ ring_buffer_new (gsize block_size,
buffer->n_blocks_total = n_blocks;
buffer->n_blocks_used = 0;
buffer->start_index = 0;
- buffer->data = g_malloc0 (n_blocks * buffer->block_size);
+ buffer->data = g_malloc0_n (n_blocks, block_size);
return buffer;
}