Fixing some C string termination bugs and setting make UDP packet size to that of ethernet