diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-08 23:29:47 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-08 23:29:47 +0000 |
commit | 0201fe758301d6cf00aeed6e24f55bb64bb4c976 (patch) | |
tree | f8371250c586593d15feb2fea7e110d0f6b9878d /usr.bin/bc | |
parent | d78aa83f99cb4a72d1f79a7c0514b7dba17f1d39 (diff) |
el_set with EL_BIND needs sentinel NULL. with help from nicm
Diffstat (limited to 'usr.bin/bc')
-rw-r--r-- | usr.bin/bc/bc.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index cd27e1720af..2a98248a846 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: bc.y,v 1.37 2011/06/03 06:52:37 deraadt Exp $ */ +/* $OpenBSD: bc.y,v 1.38 2011/07/08 23:29:46 tedu Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -1147,7 +1147,7 @@ main(int argc, char *argv[]) el_set(el, EL_SIGNAL, 0); el_set(el, EL_PROMPT, dummy_prompt); el_set(el, EL_ADDFN, "bc_eof", "", bc_eof); - el_set(el, EL_BIND, "^D", "bc_eof"); + el_set(el, EL_BIND, "^D", "bc_eof", NULL); el_source(el, NULL); } } else { |