diff options
author | Roy Marples <roy@marples.name> | 2007-09-06 08:59:35 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-06 08:59:35 +0000 |
commit | d095d4d8f508276e924e433c8fa7f6ec02e0a92b (patch) | |
tree | aa9b33eec78921a7a3b5df645e9342d8360d4f41 | |
parent | eb5b1c4c4145d17f0daf06d80445cd7981b0b650 (diff) |
strdup -> rc_xstrdup
-rw-r--r-- | src/librc.c | 4 |
1 files 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) |