]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
msgbuf_parse: rb_string_to_array outputs to a MAXPARA+1 size array
authorSimon Arlott <sa.me.uk>
Sat, 22 Oct 2016 21:37:35 +0000 (22:37 +0100)
committerSimon Arlott <sa.me.uk>
Sat, 22 Oct 2016 21:38:07 +0000 (22:38 +0100)
ircd/msgbuf.c

index 644ce691742815a053f5bac04954e986365ab305..cac37c48f494345acd37d2fa499cce21a0ef17ca 100644 (file)
@@ -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 */