From 13e380343c0eec96a723e7407d59fb7f5d20aba0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 2 Jan 2017 17:35:49 -0800 Subject: Fixes to enable REQ/REP to operate. This uncovered a few problems - inproc was not moving the headers to the body on transmit, and the message chunk allocator had a serious bug leading to memory corruption. I've also added a message dumper, which turns out to be incredibly useful during debugging. --- src/platform/posix/posix_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/platform/posix/posix_alloc.c') diff --git a/src/platform/posix/posix_alloc.c b/src/platform/posix/posix_alloc.c index 98a76669..cce348f3 100644 --- a/src/platform/posix/posix_alloc.c +++ b/src/platform/posix/posix_alloc.c @@ -15,9 +15,9 @@ // POSIX memory allocation. This is pretty much standard C. void * -nni_alloc(size_t size) +nni_alloc(size_t sz) { - return (calloc(1, size)); + return (calloc(1, sz)); } -- cgit v1.2.3-70-g09d2