diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 01:31:09 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 01:31:09 +0100 |
commit | 9aabcc4bf2bf8d66a50c6a934f743c5dede3fd43 (patch) | |
tree | b687361165ea191718842e12f53630b0d7bd73c1 /FICS/multicol.c | |
parent | e49c6b0d673fec46519e3c6fb4150480026f7025 (diff) |
strdup() -> xstrdup()
Diffstat (limited to 'FICS/multicol.c')
-rw-r--r-- | FICS/multicol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/multicol.c b/FICS/multicol.c index 8d52b04..d9fa653 100644 --- a/FICS/multicol.c +++ b/FICS/multicol.c @@ -56,7 +56,7 @@ PUBLIC int multicol_store(multicol * m, char *str) return -1; if (!str) return -1; - m->strArray[m->num] = strdup(str); + m->strArray[m->num] = xstrdup(str); m->num++; return 0; } @@ -73,13 +73,13 @@ PUBLIC int multicol_store_sorted(multicol * m, char *str) for (i = m->num; (i > 0) && (!found); i--) { if (strcasecmp(str, m->strArray[i - 1]) >= 0) { found = 1; - m->strArray[i] = strdup(str); + m->strArray[i] = xstrdup(str); } else { m->strArray[i] = m->strArray[i - 1]; } } if (!found) - m->strArray[0] = strdup(str); + m->strArray[0] = xstrdup(str); m->num++; return 0; } |