Module Name:    src
Committed By:   christos
Date:           Fri Oct 28 18:32:27 UTC 2016

Modified Files:
        src/lib/libedit: readline.c

Log Message:
pass the stream to the getc function


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/lib/libedit/readline.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/readline.c
diff -u src/lib/libedit/readline.c:1.138 src/lib/libedit/readline.c:1.139
--- src/lib/libedit/readline.c:1.138	Thu Sep  1 09:23:44 2016
+++ src/lib/libedit/readline.c	Fri Oct 28 14:32:26 2016
@@ -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 <sys/types.h>
@@ -196,7 +196,7 @@ _getc_function(EditLine *el __attribute_
 {
 	int i;
 
-	i = (*rl_getc_function)(NULL);
+	i = (*rl_getc_function)(rl_instream);
 	if (i == -1)
 		return 0;
 	*c = (wchar_t)i;

Reply via email to