aboutsummaryrefslogtreecommitdiff
path: root/src/librc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-19 14:54:35 +0000
committerRoy Marples <roy@marples.name>2007-04-19 14:54:35 +0000
commit2569e85579bc5c7d676865b386398119f04a5912 (patch)
tree41724e54856c9323b53428e49258f56f1102c0ed /src/librc.c
parent3ed60d52026c484dce2d1856ea3bb893b8ee7d92 (diff)
strdup -> rc_xstrdup
Diffstat (limited to 'src/librc.c')
-rw-r--r--src/librc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc.c b/src/librc.c
index c2da2347..a0d09c7d 100644
--- a/src/librc.c
+++ b/src/librc.c
@@ -136,7 +136,7 @@ char *rc_resolve_service (const char *service)
r = readlink (file, buffer, sizeof (buffer));
free (file);
if (r > 0)
- return strdup (buffer);
+ return (rc_xstrdup (buffer));
}
snprintf (buffer, sizeof (buffer), RC_INITDIR "%s", service);
@@ -467,7 +467,7 @@ static pid_t _exec_service (const char *service, const char *arg)
}
if ((pid = fork ()) == 0) {
- char *myarg = strdup (arg);
+ char *myarg = rc_xstrdup (arg);
int e = 0;
execl (file, file, myarg, (char *) NULL);
e = errno;