defined DDP_MAX_DATALEN as 480*3 and fixed crash if too long