From 3656fa83a9228c9fc576776002e3803b498079f7 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 22 Oct 2016 22:37:35 +0100 Subject: [PATCH] msgbuf_parse: rb_string_to_array outputs to a MAXPARA+1 size array --- ircd/msgbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/msgbuf.c b/ircd/msgbuf.c index 644ce691..cac37c48 100644 --- a/ircd/msgbuf.c +++ b/ircd/msgbuf.c @@ -33,7 +33,7 @@ int msgbuf_parse(struct MsgBuf *msgbuf, char *line) { char *ch; - char *parv[MAXPARA]; + char *parv[MAXPARA + 1]; size_t n_para; /* skip any leading spaces */