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

Diff of /lbbs/src/article_cache.c

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

Revision 1.38 by sysadm, Sat Nov 29 02:07:27 2025 UTC Revision 1.39 by sysadm, Thu Dec 18 02:56:00 2025 UTC
# Line 129  int article_cache_generate(const char *c Line 129  int article_cache_generate(const char *c
129    
130          if (header_len != cache.line_offsets[header_line_cnt])          if (header_len != cache.line_offsets[header_line_cnt])
131          {          {
132  #ifdef _DEBUG                  log_debug("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld",
                 log_error("Header of article(aid=%d) is truncated from %ld to %ld\n, body_line=%ld, body_line_limit=%ld",  
133                                    p_article->aid, header_len, cache.line_offsets[header_line_cnt],                                    p_article->aid, header_len, cache.line_offsets[header_line_cnt],
134                                    header_line_cnt, MAX_SPLIT_FILE_LINES);                                    header_line_cnt, MAX_SPLIT_FILE_LINES);
 #endif  
135                  header_len = (size_t)cache.line_offsets[header_line_cnt];                  header_len = (size_t)cache.line_offsets[header_line_cnt];
136          }          }
137    
# Line 147  int article_cache_generate(const char *c Line 145  int article_cache_generate(const char *c
145    
146          if (body_len != (size_t)cache.line_offsets[cache.line_total])          if (body_len != (size_t)cache.line_offsets[cache.line_total])
147          {          {
148  #ifdef _DEBUG                  log_debug("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n",
                 log_error("Body of article(aid=%d) is truncated from %ld to %ld, body_line=%ld, body_line_limit=%ld\n",  
149                                    p_article->aid, body_len, cache.line_offsets[cache.line_total],                                    p_article->aid, body_len, cache.line_offsets[cache.line_total],
150                                    body_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt);                                    body_line_cnt, MAX_SPLIT_FILE_LINES - header_line_cnt);
 #endif  
151                  cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]);                  cache.data_len = header_len + (size_t)(cache.line_offsets[cache.line_total]);
152          }          }
153    
# Line 165  int article_cache_generate(const char *c Line 161  int article_cache_generate(const char *c
161    
162          if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt])          if (footer_len != cache.line_offsets[cache.line_total + footer_line_cnt])
163          {          {
164  #ifdef _DEBUG                  log_debug("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n",
                 log_error("Footer of article(aid=%d) is truncated from %ld to %ld, footer_line=%ld, footer_line_limit=%ld\n",  
165                                    p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt],                                    p_article->aid, footer_len, cache.line_offsets[cache.line_total + footer_line_cnt],
166                                    footer_line_cnt, MAX_SPLIT_FILE_LINES - cache.line_total);                                    footer_line_cnt, MAX_SPLIT_FILE_LINES - cache.line_total);
 #endif  
167                  footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]);                  footer_len = (size_t)(cache.line_offsets[cache.line_total + footer_line_cnt]);
168          }          }
169    


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

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