aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-07 09:09:30 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-07 09:09:30 +0200
commit3aa562fe991728271b0f8d93f774195e8792d2ea (patch)
treef83915fc55a18f38bc61f9d82bbe86413ee067cf /field.c
parent313a4000d906aa233ce8b597031f660d6281f690 (diff)
downloadegawk-3aa562fe991728271b0f8d93f774195e8792d2ea.tar.gz
egawk-3aa562fe991728271b0f8d93f774195e8792d2ea.tar.bz2
egawk-3aa562fe991728271b0f8d93f774195e8792d2ea.zip
Finish fixing indirect call of builtins.
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)