Fix argument positions and remove useless memset