aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
committerDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
commitf0bc2210cdcbb0d641e3a723ca23409afe615535 (patch)
tree98ac3edb553ef013096d204f633089a2e7af7744 /src/serd_internal.h
parenta5b040e33d00a8d6eab1ba8167f5ccaecbbfbc75 (diff)
downloadserd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.gz
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.bz2
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.zip
Fix calloc argument order
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h
index 47b1ab98..0bc1cf42 100644
--- a/src/serd_internal.h
+++ b/src/serd_internal.h
@@ -176,7 +176,7 @@ static inline SerdStack
serd_stack_new(size_t size)
{
SerdStack stack;
- stack.buf = (uint8_t*)calloc(1, size);
+ stack.buf = (uint8_t*)calloc(size, 1);
stack.buf_size = size;
stack.size = SERD_STACK_BOTTOM;
return stack;