aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
Diffstat (limited to 'field.c')
-rw-r--r--field.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/field.c b/field.c
index 1cbd547d..88309a88 100644
--- a/field.c
+++ b/field.c
@@ -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)