Fix too small MAX args in initctl and too few args in svc_t

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-10-07 21:03:35 +02:00
1 parent d2f23e281f
commit 5e33647f80
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ static int show_status(char *UNUSED(arg))
for (svc = svc_iterator(1); svc; svc = svc_iterator(0)) { for (svc = svc_iterator(1); svc; svc = svc_iterator(0)) {
int inetd = svc_is_inetd(svc); int inetd = svc_is_inetd(svc);
char jobid[10], args[80] = ""; char jobid[10], args[512] = "";
struct init_request rq = { struct init_request rq = {
.magic = INIT_MAGIC, .magic = INIT_MAGIC,
.cmd = INIT_CMD_QUERY_INETD, .cmd = INIT_CMD_QUERY_INETD,
+1 -1
View File
@@ -52,7 +52,7 @@ typedef enum {
#define MAX_USER_LEN 16 #define MAX_USER_LEN 16
#define MAX_NUM_FDS 64 /* Max number of I/O plugins */ #define MAX_NUM_FDS 64 /* Max number of I/O plugins */
#define MAX_NUM_SVC 64 /* Enough? */ #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 /* Default enable for all services, can be stopped by means
* of issuing an initctl call. E.g. * of issuing an initctl call. E.g.