aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-06 13:24:10 +0000
committerRoy Marples <roy@marples.name>2008-04-06 13:24:10 +0000
commit143239e143d57c550e949fb3fcc4540de7c8d354 (patch)
tree73a8503395edf832d0220307243e2fba4aab4405 /src/rc/runscript.c
parent5d38d4d6e9e1e758395546e38af8e8c738043fd1 (diff)
Increase pidstr size to 10 chars.
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index aa4a6021..c2cef71c 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1084,7 +1084,7 @@ int runscript(int argc, char **argv)
{
bool deps = true;
bool doneone = false;
- char pid[16];
+ char pidstr[10];
int retval;
int opt;
RC_STRING *svc;
@@ -1143,8 +1143,8 @@ int runscript(int argc, char **argv)
/* Set an env var so that we always know our pid regardless of any
subshells the init script may create so that our mark_service_*
functions can always instruct us of this change */
- snprintf(pid, sizeof(pid), "%d", (int) getpid());
- setenv("RC_RUNSCRIPT_PID", pid, 1);
+ snprintf(pidstr, sizeof(pidstr), "%d", (int) getpid());
+ setenv("RC_RUNSCRIPT_PID", pidstr, 1);
/* eprefix is kinda klunky, but it works for our purposes */
if (rc_conf_yesno("rc_parallel")) {