From 5e33647f807806caaa0e9aab0c3715292ad901ff Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 7 Oct 2015 21:03:35 +0200 Subject: [PATCH] Fix too small MAX args in initctl and too few args in svc_t Signed-off-by: Joachim Nilsson --- initctl.c | 2 +- svc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/initctl.c b/initctl.c index 1f402d3a..39f53c62 100644 --- a/initctl.c +++ b/initctl.c @@ -150,7 +150,7 @@ static int show_status(char *UNUSED(arg)) for (svc = svc_iterator(1); svc; svc = svc_iterator(0)) { int inetd = svc_is_inetd(svc); - char jobid[10], args[80] = ""; + char jobid[10], args[512] = ""; struct init_request rq = { .magic = INIT_MAGIC, .cmd = INIT_CMD_QUERY_INETD, diff --git a/svc.h b/svc.h index ba9433e7..066f204e 100644 --- a/svc.h +++ b/svc.h @@ -52,7 +52,7 @@ typedef enum { #define MAX_USER_LEN 16 #define MAX_NUM_FDS 64 /* Max number of I/O plugins */ #define MAX_NUM_SVC 64 /* Enough? */ -#define MAX_NUM_SVC_ARGS 16 +#define MAX_NUM_SVC_ARGS 32 /* Default enable for all services, can be stopped by means * of issuing an initctl call. E.g.