fix strcat length error bug.