fixed temp buffer max length and memset length params