pktout.data = (pktout.data == NULL ? malloc(biglen) : realloc(pktout.data, biglen));
pktout.data = (pktout.data == NULL ? malloc(biglen+4) : realloc(pktout.data, biglen+4));
static void s_wrpkt_start(int type, int len) {    int pad, biglen;    len += 5;			       /* type and CRC */    pad = 8 - (len%8);    biglen = len + pad;    pktout.length = len-5;    if (pktout.maxlen < biglen) {	pktout.maxlen = biglen;	pktout.data = (pktout.data == NULL ? malloc(biglen) :		       realloc(pktout.data, biglen));	if (!pktout.data)	    fatalbox("Out of memory");    }    pktout.type = type;    pktout.body = pktout.data+4+pad+1;}