/[LeafOK_CVS]/lbbs/src/file_loader.c
ViewVC logotype

Diff of /lbbs/src/file_loader.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 by sysadm, Sun May 25 06:48:31 2025 UTC Revision 1.14 by sysadm, Mon Jun 16 01:36:56 2025 UTC
# Line 29  Line 29 
29  #include <sys/shm.h>  #include <sys/shm.h>
30  #include <sys/ipc.h>  #include <sys/ipc.h>
31    
 #define MAX_SPLIT_FILE_LINES 65536  
   
32  struct shm_header_t  struct shm_header_t
33  {  {
34          int shmid;          int shmid;
# Line 123  int load_file(const char *filename) Line 121  int load_file(const char *filename)
121                  return -1;                  return -1;
122          }          }
123    
124          line_total = split_data_lines(p_data, SCREEN_COLS, line_offsets, MAX_SPLIT_FILE_LINES);          line_total = split_data_lines(p_data, SCREEN_COLS, line_offsets, MAX_SPLIT_FILE_LINES, 1);
         if (line_total >= MAX_SPLIT_FILE_LINES)  
         {  
                 log_error("split_data_lines() truncated over limit lines\n");  
         }  
125    
126          // Allocate shared memory          // Allocate shared memory
127          proj_id = (int)(time(NULL) % getpid());          proj_id = (int)(time(NULL) % getpid());


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1