--- lbbs/src/str_process.c 2025/11/11 00:28:05 1.30 +++ lbbs/src/str_process.c 2025/11/22 10:36:37 1.32 @@ -42,14 +42,14 @@ int str_length(const char *str, int skip if (skip_ctrl_seq && c == '\033' && str[i + 1] == '[') // Skip control sequence { - for (i = i + 2; isdigit(str[i]) || str[i] == ';' || str[i] == '?'; i++) + for (i = i + 2; isdigit((int)str[i]) || str[i] == ';' || str[i] == '?'; i++) ; if (str[i] == 'm') // valid { // skip } - else if (isalpha(str[i])) + else if (isalpha((int)str[i])) { // unsupported ANSI CSI command } @@ -203,7 +203,9 @@ long split_data_lines(const char *p_buf, // Exceed max_line_cnt if (line_cnt + 1 >= line_offsets_count) { - // log_error("Line count %d reaches limit %d\n", line_cnt + 1, line_offsets_count); +#ifdef _DEBUG + log_error("Line count %d reaches limit %d\n", line_cnt + 1, line_offsets_count); +#endif return line_cnt; }