summaryrefslogtreecommitdiff
path: root/usr/src/cmd/svc
diff options
context:
space:
mode:
authorDan Vatca <dan@syneto.net>2015-05-27 13:29:55 +0300
committerRichard Lowe <richlowe@richlowe.net>2015-05-27 14:14:10 -0400
commit09f79f7c66b85f056db11f58210dc6182c9b1aef (patch)
tree26525ff1b41ab46eb788d0ecde0fa660d10f2b62 /usr/src/cmd/svc
parentcb5842f8b0caaad0ed53535bd77042e933fdbafe (diff)
downloadillumos-gate-09f79f7c66b85f056db11f58210dc6182c9b1aef.tar.gz
4418 svc.startd crash with a long instance name and more than one dependency
Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Albert Lee <trisk@omniti.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/cmd/svc')
-rw-r--r--usr/src/cmd/svc/startd/graph.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/svc/startd/graph.c b/usr/src/cmd/svc/startd/graph.c
index 7fbf17a6ec..c831c99301 100644
--- a/usr/src/cmd/svc/startd/graph.c
+++ b/usr/src/cmd/svc/startd/graph.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, Syneto S.R.L. All rights reserved.
*/
/*
@@ -2588,7 +2589,7 @@ process_dependency_pg(scf_propertygroup_t *pg, struct deppg_info *info)
fmri_sz = strlen(info->v->gv_name) + 1 + len + 1;
fmri = startd_alloc(fmri_sz);
- (void) snprintf(fmri, max_scf_name_size, "%s>%s", info->v->gv_name,
+ (void) snprintf(fmri, fmri_sz, "%s>%s", info->v->gv_name,
pg_name);
/* Validate the pg before modifying the graph */