diff options
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -979,6 +979,8 @@ do_split(int nargs) Regexp *, Setfunc, NODE *, NODE *, bool); Regexp *rp = NULL; + check_args_min_max(nargs, "split", 3, 4); + if (nargs == 4) { static bool warned = false; @@ -1081,6 +1083,8 @@ do_patsplit(int nargs) char *s; Regexp *rp = NULL; + check_args_min_max(nargs, "patsplit", 3, 4); + if (nargs == 4) { sep_arr = POP_PARAM(); if (sep_arr->type != Node_var_array) |