summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-02-16 01:44:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-02-16 01:44:42 +0000
commit44f40f71730f2ae11e5e967e9cb8c06b0dbfe653 (patch)
tree62387886f9464350751640ff8e984bf05c60e3bd /bin/ksh
parent110fe191e443f22fbb4826ac408d63a1e9ae9387 (diff)
bcmp to memcmp
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/emacs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index 31cbe85716d..6e16970daed 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.48 2013/12/17 16:37:05 deraadt Exp $ */
+/* $OpenBSD: emacs.c,v 1.49 2015/02/16 01:44:41 tedu Exp $ */
/*
* Emacs-like command line editing and history
@@ -331,7 +331,7 @@ x_emacs(char *buf, size_t len)
if (at > k->len)
continue;
- if (!bcmp(k->seq, line, at)) {
+ if (memcmp(k->seq, line, at) == 0) {
/* sub match */
submatch++;
if (k->len == at)
@@ -1296,7 +1296,7 @@ kb_match(char *s)
if (len > k->len)
continue;
- if (!bcmp(k->seq, s, len))
+ if (memcmp(k->seq, s, len) == 0)
return (1);
}