fix strlen compile warning in linux