From 1a4590725baa1b7a56cd54e1fcb70f249d1be715 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 28 Oct 2016 18:32:26 +0000 Subject: [PATCH] pass the stream to the getc function --- lib/libedit/readline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libedit/readline.c b/lib/libedit/readline.c index f3c14015a501..fd25c0164caf 100644 --- a/lib/libedit/readline.c +++ b/lib/libedit/readline.c @@ -1,4 +1,4 @@ -/* $NetBSD: readline.c,v 1.138 2016/09/01 13:23:44 mbalmer Exp $ */ +/* $NetBSD: readline.c,v 1.139 2016/10/28 18:32:26 christos Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include "config.h" #if !defined(lint) && !defined(SCCSID) -__RCSID("$NetBSD: readline.c,v 1.138 2016/09/01 13:23:44 mbalmer Exp $"); +__RCSID("$NetBSD: readline.c,v 1.139 2016/10/28 18:32:26 christos Exp $"); #endif /* not lint && not SCCSID */ #include @@ -196,7 +196,7 @@ _getc_function(EditLine *el __attribute__((__unused__)), wchar_t *c) { int i; - i = (*rl_getc_function)(NULL); + i = (*rl_getc_function)(rl_instream); if (i == -1) return 0; *c = (wchar_t)i;