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

Diff of /lbbs/src/section_list_display.c

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

Revision 1.74 by sysadm, Mon Nov 10 14:24:37 2025 UTC Revision 1.77 by sysadm, Wed Nov 19 14:34:45 2025 UTC
# Line 6  Line 6 
6   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7   */   */
8    
9    #ifdef HAVE_CONFIG_H
10    #include "config.h"
11    #endif
12    
13  #include "article_cache.h"  #include "article_cache.h"
14  #include "article_favor.h"  #include "article_favor.h"
15  #include "article_op.h"  #include "article_op.h"
# Line 708  int section_list_display(const char *sna Line 712  int section_list_display(const char *sna
712                  {                  {
713                  case EXIT_SECTION:                  case EXIT_SECTION:
714                          // Update current aid location                          // Update current aid location
715                          if (p_articles[selected_index] != NULL)                          if (selected_index < article_count && p_articles[selected_index] != NULL)
716                          {                          {
717                                  if (selected_index >= ontop_start_offset)                                  if (selected_index >= ontop_start_offset)
718                                  {                                  {
# Line 1187  int section_list_display(const char *sna Line 1191  int section_list_display(const char *sna
1191                          // Verify format                          // Verify format
1192                          for (i = 0, ok = 1; ok && username[i] != '\0'; i++)                          for (i = 0, ok = 1; ok && username[i] != '\0'; i++)
1193                          {                          {
1194                                  if (!(isalpha(username[i]) || (i > 0 && (isdigit(username[i]) || username[i] == '_'))))                                  if (!(isalpha((int)username[i]) || (i > 0 && (isdigit((int)username[i]) || username[i] == '_'))))
1195                                  {                                  {
1196                                          ok = 0;                                          ok = 0;
1197                                  }                                  }


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

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