msgbuf_parse: rb_string_to_array outputs to a MAXPARA+1 size array

This commit is contained in:
Simon Arlott 2016-10-22 22:37:35 +01:00
parent 01dd3da541
commit 3656fa83a9
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View 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 */