Fixed with ntohs and strlen for null char