summaryrefslogtreecommitdiff
path: root/src/util/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/buffer.c')
-rw-r--r--src/util/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/buffer.c b/src/util/buffer.c
index ab7adac..9d8c9cf 100644
--- a/src/util/buffer.c
+++ b/src/util/buffer.c
@@ -36,6 +36,7 @@ void nn_buffer_write(struct nn_buffer *buffer, void *data, size_t index, size_t
nn_buffer_ensure_space(buffer, reach);
buffer->size = reach;
}
+ al_assert(data && size > 0);
al_memcpy(&buffer->data[index], data, size);
}