Fixed allocation of variable-length things to compute the header correctly.
Was ignoring the header size and just including the extra in the header. Also, fixed allocation of static-length things to only adjust ALLOC once. Was allocating twice as much memory as necessary by adding in the size twice.
Please register or sign in to comment