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

Diff of /lbbs/src/article_post.c

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

Revision 1.17 by sysadm, Sun Jun 15 04:46:19 2025 UTC Revision 1.18 by sysadm, Sun Jun 15 06:19:21 2025 UTC
# Line 764  int article_reply(const SECTION_LIST *p_ Line 764  int article_reply(const SECTION_LIST *p_
764          {          {
765                  mysql_close(db);                  mysql_close(db);
766                  db = NULL;                  db = NULL;
767                    
768                  clearscr();                  clearscr();
769                  moveto(1, 1);                  moveto(1, 1);
770                  prints("该主题谢绝回复");                  prints("该主题谢绝回复");
# Line 828  int article_reply(const SECTION_LIST *p_ Line 828  int article_reply(const SECTION_LIST *p_
828                          len += 2;                          len += 2;
829                          memcpy(content + len, content_f + line_offsets[i], (size_t)(line_offsets[i + 1] - line_offsets[i]));                          memcpy(content + len, content_f + line_offsets[i], (size_t)(line_offsets[i + 1] - line_offsets[i]));
830                          len += (line_offsets[i + 1] - line_offsets[i]);                          len += (line_offsets[i + 1] - line_offsets[i]);
831                            if (content[len - 1] != '\n') // Appennd \n if not exist
832                            {
833                                    content[len] = '\n';
834                                    len++;
835                            }
836                  }                  }
837                  if (content[len - 1] != '\n') // Appennd \n if not exist                  if (content[len - 1] != '\n') // Appennd \n if not exist
838                  {                  {


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

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