artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fef93
)
No need to NUL-terminate the line buffer since it's handled by x_e_getu8() by
author
anton
<anton@openbsd.org>
Sun, 25 Jun 2017 17:28:39 +0000
(17:28 +0000)
committer
anton
<anton@openbsd.org>
Sun, 25 Jun 2017 17:28:39 +0000
(17:28 +0000)
now.
ok schwarze@
bin/ksh/emacs.c
patch
|
blob
|
history
diff --git
a/bin/ksh/emacs.c
b/bin/ksh/emacs.c
index
9e9b4c5
..
ae0a9fd
100644
(file)
--- a/
bin/ksh/emacs.c
+++ b/
bin/ksh/emacs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: emacs.c,v 1.
69 2017/06/25 08:51:52
anton Exp $ */
+/* $OpenBSD: emacs.c,v 1.
70 2017/06/25 17:28:39
anton Exp $ */
/*
* Emacs-like command line editing and history
@@
-309,7
+309,6
@@
x_emacs(char *buf, size_t len)
x_nextcmd = -1;
}
- line[0] = '\0';
x_literal_set = 0;
x_arg = -1;
x_last_command = NULL;
@@
-392,7
+391,6
@@
x_emacs(char *buf, size_t len)
/* reset meta sequence */
at = ntries = 0;
- line[0] = '\0';
if (x_arg_set)
x_arg_set = 0; /* reset args next time around */
else