--- lbbs/src/file_loader.c 2025/05/29 09:44:01 1.12 +++ lbbs/src/file_loader.c 2025/06/21 02:15:18 1.15 @@ -15,19 +15,19 @@ ***************************************************************************/ #include "file_loader.h" -#include "trie_dict.h" -#include "str_process.h" #include "log.h" -#include +#include "str_process.h" +#include "trie_dict.h" #include -#include +#include #include #include #include +#include +#include #include -#include #include -#include +#include struct shm_header_t { @@ -121,11 +121,7 @@ int load_file(const char *filename) return -1; } - line_total = split_data_lines(p_data, SCREEN_COLS, line_offsets, MAX_SPLIT_FILE_LINES); - if (line_total >= MAX_SPLIT_FILE_LINES) - { - log_error("split_data_lines() truncated over limit lines\n"); - } + line_total = split_data_lines(p_data, SCREEN_COLS, line_offsets, MAX_SPLIT_FILE_LINES, 1); // Allocate shared memory proj_id = (int)(time(NULL) % getpid());