strdup -> rc_xstrdup

This commit is contained in:
Roy Marples 2007-09-06 08:59:35 +00:00
parent eb5b1c4c41
commit d095d4d8f5

View File

@ -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)