aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/lists.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-10 01:31:09 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-10 01:31:09 +0100
commit9aabcc4bf2bf8d66a50c6a934f743c5dede3fd43 (patch)
treeb687361165ea191718842e12f53630b0d7bd73c1 /FICS/lists.c
parente49c6b0d673fec46519e3c6fb4150480026f7025 (diff)
strdup() -> xstrdup()
Diffstat (limited to 'FICS/lists.c')
-rw-r--r--FICS/lists.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/lists.c b/FICS/lists.c
index 7e3748d..46c67f9 100644
--- a/FICS/lists.c
+++ b/FICS/lists.c
@@ -91,7 +91,7 @@ PRIVATE List *list_find(int p, enum ListWhich l)
while (!feof(fp)) {
if (fgets(listmember, 100, fp) != NULL) {
listmember[strlen(listmember) - 1] = '\0';
- tempList->member[count++] = strdup(listmember);
+ tempList->member[count++] = xstrdup(listmember);
}
}
fclose(fp);
@@ -110,7 +110,7 @@ PUBLIC int list_add(int p, enum ListWhich l, char *s)
if (gl) {
if (gl->numMembers < MAX_GLOBAL_LIST_SIZE) {
- gl->member[gl->numMembers] = strdup(s);
+ gl->member[gl->numMembers] = xstrdup(s);
gl->numMembers++;
return 0;
} else {