aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-04-03 22:10:43 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-04-03 22:10:43 +0200
commitffba98f62c947da6fa01120170a13ec4337aa1a5 (patch)
tree3d8a5473cccf914dfceb22ff679de7cb1e123137
parentf5a824143109e30f2cc1599a19e1de14cc86a517 (diff)
add_to_list: disabled warnx() call and return -2
-rw-r--r--FICS/playerdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 06694ab..d61224f 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -412,8 +412,8 @@ add_to_list(FILE *fp, enum ListWhich lw, int *size, int p)
#define SCAN_STR "%1023s"
if (*size <= 0 || *size > MAX_GLOBAL_LIST_SIZE) {
- warnx("%s: illegal list size (%d)", __func__, *size);
- return -1;
+// warnx("%s: illegal list size (%d)", __func__, *size);
+ return -2;
}
while ((*size)-- > 0 && fscanf(fp, SCAN_STR, buf) == 1)