fix pointer arithmetic in WTPProtocol.c