/[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.6 by sysadm, Sun May 18 06:56:08 2025 UTC Revision 1.7 by sysadm, Sun May 18 07:41:34 2025 UTC
# Line 163  int load_file_shm(const char *filename) Line 163  int load_file_shm(const char *filename)
163                  return -2;                  return -2;
164          }          }
165    
166          p_data = p_shm + sizeof(data_len) + sizeof(line_total);          p_data = p_shm + sizeof(int) + sizeof(data_len) + sizeof(line_total);
167          p_line_offsets = p_data + data_len + 1;          p_line_offsets = p_data + data_len + 1;
168          memcpy(p_line_offsets, line_offsets, sizeof(long) * (size_t)(line_total + 1));          memcpy(p_line_offsets, line_offsets, sizeof(long) * (size_t)(line_total + 1));
169    


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

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