修复charLength Bug