From f5433dcaa4c5db0bc1304ab98832728d8a3a0b26 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 15 Apr 2020 19:45:17 -0500 Subject: [PATCH] Fix core getline that doesn't use replacement. --- src/core/corelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index 4f6a4d4c..c4be2704 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -435,7 +435,7 @@ static Janet janet_core_hash(int32_t argc, Janet *argv) { static Janet janet_core_getline(int32_t argc, Janet *argv) { FILE *in = janet_dynfile("in", stdin); FILE *out = janet_dynfile("out", stdout); - janet_arity(argc, 0, 2); + janet_arity(argc, 0, 3); JanetBuffer *buf = (argc >= 2) ? janet_getbuffer(argv, 1) : janet_buffer(10); if (argc >= 1) { const char *prompt = (const char *) janet_getstring(argv, 0);