aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.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/utils.c
parente49c6b0d673fec46519e3c6fb4150480026f7025 (diff)
strdup() -> xstrdup()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index d6a93a9..955d56f 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -406,7 +406,7 @@ PUBLIC int psend_file(int p, char *dir, char *file)
}
}
if (!feof(fp)) {
- parray[p].last_file = strdup(fname);
+ parray[p].last_file = xstrdup(fname);
parray[p].last_file_byte = ftell(fp);
pprintf(p, "Type [next] to see next page.\n");
}
@@ -571,7 +571,7 @@ PUBLIC int printablestring(char *str)
return 1;
}
-PUBLIC char *strdup(const char *str)
+PUBLIC char *xstrdup(const char *str)
{
char *tmp;