--- lbbs/src/str_process.c 2025/11/04 13:49:51 1.23 +++ lbbs/src/str_process.c 2025/11/07 13:42:45 1.25 @@ -3,7 +3,7 @@ * str_process * - common string processing features with UTF-8 support * - * Copyright (C) 2004-2025 by Leaflet + * Copyright (C) 2004-2025 Leaflet */ #include "common.h" @@ -162,7 +162,7 @@ long split_data_lines(const char *p_buf, p_line_offsets[line_cnt + 1] = p_line_offsets[line_cnt] + len; line_cnt++; p_buf += len; - } while (p_buf[0] != '\0'); + } while (len > 0); return line_cnt; }