diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-10-12 16:17:53 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-10-12 16:17:53 +0200 |
commit | c48496b50a72575438f87da69080a48e0878a121 (patch) | |
tree | c42df1ab4ba1907afc600dbde81852873801c859 /tools/gui/ring-buffer.c | |
parent | ef7ff789e9c15f4f4b8c65585de7e7fa4f9c9438 (diff) | |
download | libuca-c48496b50a72575438f87da69080a48e0878a121.tar.gz libuca-c48496b50a72575438f87da69080a48e0878a121.tar.bz2 libuca-c48496b50a72575438f87da69080a48e0878a121.tar.xz libuca-c48496b50a72575438f87da69080a48e0878a121.zip |
Control memory size via command line
Diffstat (limited to 'tools/gui/ring-buffer.c')
-rw-r--r-- | tools/gui/ring-buffer.c | 2 |
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; } |