OK? martijn@
Index: ax.c =================================================================== RCS file: /cvs/src/lib/libagentx/ax.c,v retrieving revision 1.2 diff -u -p -r1.2 ax.c --- ax.c 26 Oct 2020 16:02:16 -0000 1.2 +++ ax.c 26 Oct 2020 18:07:30 -0000 @@ -69,9 +69,9 @@ ax_new(int fd) if ((ax = calloc(1, sizeof(*ax))) == NULL) return NULL; ax->ax_fd = fd; - if ((ax->ax_rbuf = malloc(512)) == NULL) - goto fail; ax->ax_rbsize = 512; + if ((ax->ax_rbuf = malloc(ax->ax_rbsize)) == NULL) + goto fail; ax->ax_byteorder = AX_BYTE_ORDER_NATIVE; return ax;