]> jfr.im git - solanum.git/blobdiff - ircd/bandbi.c
librb: remove unnecessary NULL from the end of rb_string_to_array output
[solanum.git] / ircd / bandbi.c
index 567f30fd7f1200a081f456c16b0184168ded7cd8..5384840d8abec5e1df43bb4139598333b0875fcc 100644 (file)
@@ -400,12 +400,12 @@ static void
 bandb_parse(rb_helper *helper)
 {
        static char buf[READBUF_SIZE];
-       char *parv[MAXPARA + 1];
+       char *parv[MAXPARA];
        int len, parc;
 
        while((len = rb_helper_read(helper, buf, sizeof(buf))))
        {
-               parc = rb_string_to_array(buf, parv, MAXPARA);
+               parc = rb_string_to_array(buf, parv, sizeof(parv));
 
                if(parc < 1)
                        continue;