From 2569e85579bc5c7d676865b386398119f04a5912 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 19 Apr 2007 14:54:35 +0000 Subject: strdup -> rc_xstrdup --- src/librc-misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librc-misc.c') diff --git a/src/librc-misc.c b/src/librc-misc.c index b728e8c9..62000fa3 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -59,7 +59,7 @@ char *rc_xstrdup (const char *str) if (! str) return (NULL); - value = strdup (str); + value = rc_xstrdup (str); if (value) return (value); @@ -490,7 +490,7 @@ char **rc_filter_env (void) /* Now go through the env var and only add bits not in our PREFIX */ sep = env_var; while ((token = strsep (&sep, ":"))) { - char *np = strdup (PATH_PREFIX); + char *np = rc_xstrdup (PATH_PREFIX); char *npp = np; char *tok = NULL; while ((tok = strsep (&npp, ":"))) -- cgit v1.2.3