summaryrefslogtreecommitdiff
path: root/ext/pathname/pathname.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@fsij.org>2019-07-14 17:39:21 +0900
committerTanaka Akira <akr@fsij.org>2019-07-14 17:42:58 +0900
commit4d9504fe13c6470d9da74540f92a247e8c1d9b99 (patch)
tree557d834357439c28f7c4fc0de3f257c4192bbfdd /ext/pathname/pathname.c
parent61577fa53bd1ce949912c3b1281668e0ccbcda37 (diff)
Delegates 3 arguments for Pathname.glob.
Thanks for the patch by pocke (Masataka Kuwabara) [Feature #14405].
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r--ext/pathname/pathname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 9cf6c32039..70f82583a1 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -1092,10 +1092,10 @@ s_glob_i(RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass))
static VALUE
path_s_glob(int argc, VALUE *argv, VALUE klass)
{
- VALUE args[2];
+ VALUE args[3];
int n;
- n = rb_scan_args(argc, argv, "11", &args[0], &args[1]);
+ n = rb_scan_args(argc, argv, "12", &args[0], &args[1], &args[2]);
if (rb_block_given_p()) {
return rb_block_call(rb_cDir, id_glob, n, args, s_glob_i, klass);
}