--- lbbs/src/str_process.c 2025/12/18 02:56:01 1.33 +++ lbbs/src/str_process.c 2026/01/03 10:27:14 1.35 @@ -3,7 +3,7 @@ * str_process * - common string processing features with UTF-8 support * - * Copyright (C) 2004-2025 Leaflet + * Copyright (C) 2004-2026 Leaflet */ #ifdef HAVE_CONFIG_H @@ -76,7 +76,7 @@ int str_length(const char *str, int skip if (mbstowcs(wcs, input_str, 1) == (size_t)-1) { - log_debug("mbstowcs(%s) error\n", input_str); + log_debug("mbstowcs(%s) error", input_str); wc_len = (UTF8_fixed_width ? 2 : 1); // Fallback } else @@ -140,7 +140,7 @@ int split_line(const char *buffer, int m if (mbstowcs(wcs, input_str, 1) == (size_t)-1) { - log_debug("mbstowcs(%s) error\n", input_str); + log_debug("mbstowcs(%s) error", input_str); wc_len = (UTF8_fixed_width ? 2 : 1); // Fallback } else @@ -199,7 +199,7 @@ long split_data_lines(const char *p_buf, // Exceed max_line_cnt if (line_cnt + 1 >= line_offsets_count) { - log_debug("Line count %d reaches limit %d\n", line_cnt + 1, line_offsets_count); + log_debug("Line count %d reaches limit %d", line_cnt + 1, line_offsets_count); return line_cnt; }