From d095d4d8f508276e924e433c8fa7f6ec02e0a92b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 6 Sep 2007 08:59:35 +0000 Subject: strdup -> rc_xstrdup --- src/librc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librc.c b/src/librc.c index 6d9e46d7..e5ea5710 100644 --- a/src/librc.c +++ b/src/librc.c @@ -122,7 +122,7 @@ char *rc_resolve_service (const char *service) return (NULL); if (service[0] == '/') - return (strdup (service)); + return (rc_xstrdup (service)); file = rc_strcatpaths (RC_SVCDIR, "started", service, (char *) NULL); if (! rc_is_link (file)) { @@ -143,7 +143,7 @@ char *rc_resolve_service (const char *service) } snprintf (buffer, sizeof (buffer), RC_INITDIR "/%s", service); - return (strdup (buffer)); + return (rc_xstrdup (buffer)); } librc_hidden_def(rc_resolve_service) -- cgit v1.2.3