diff options
author | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
commit | cd4bce7e8da691b8be0a88292eee13852b826b7e (patch) | |
tree | 26ab1fb49a790b8855b0dc60781551896c065931 /src/librc-strlist.c | |
parent | a89ceb7e2c994e2a3907d9c906d99021a6e15788 (diff) |
Wups, should be xstrdup
Diffstat (limited to 'src/librc-strlist.c')
-rw-r--r-- | src/librc-strlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc-strlist.c b/src/librc-strlist.c index a9222c68..0f3225e9 100644 --- a/src/librc-strlist.c +++ b/src/librc-strlist.c @@ -27,7 +27,7 @@ static char *_rc_strlist_add (char ***list, const char *item, bool uniq) } newlist = xrealloc (lst, sizeof (char *) * (i + 2)); - newlist[i] = strdup (item); + newlist[i] = xstrdup (item); newlist[i + 1] = NULL; *list = newlist; @@ -80,7 +80,7 @@ static char *_rc_strlist_addsort (char ***list, const char *item, i++; tmp1 = newlist[i]; - retval = newlist[i] = strdup (item); + retval = newlist[i] = xstrdup (item); do { i++; tmp2 = newlist[i]; |