Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/ex Compare ap->len wide chars, not ap-...
details: https://anonhg.NetBSD.org/src/rev/1755c67f4398
branches: trunk
changeset: 357888:1755c67f4398
user: rin <rin%NetBSD.org@localhost>
date: Fri Dec 01 20:01:31 2017 +0000
description:
Compare ap->len wide chars, not ap->len bytes.
diffstat:
external/bsd/nvi/dist/ex/ex_usage.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ac6eeb1ad5f -r 1755c67f4398 external/bsd/nvi/dist/ex/ex_usage.c
--- a/external/bsd/nvi/dist/ex/ex_usage.c Fri Dec 01 19:05:49 2017 +0000
+++ b/external/bsd/nvi/dist/ex/ex_usage.c Fri Dec 01 20:01:31 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_usage.c,v 1.3 2014/01/26 21:43:45 christos Exp $ */
+/* $NetBSD: ex_usage.c,v 1.4 2017/12/01 20:01:31 rin Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -16,7 +16,7 @@
static const char sccsid[] = "Id: ex_usage.c,v 10.15 2001/06/25 15:19:21 skimo Exp (Berkeley) Date: 2001/06/25 15:19:21 ";
#endif /* not lint */
#else
-__RCSID("$NetBSD: ex_usage.c,v 1.3 2014/01/26 21:43:45 christos Exp $");
+__RCSID("$NetBSD: ex_usage.c,v 1.4 2017/12/01 20:01:31 rin Exp $");
#endif
#include <sys/types.h>
@@ -78,7 +78,7 @@
} else
newscreen = 0;
for (cp = cmds; cp->name != NULL &&
- memcmp(ap->bp, cp->name, ap->len); ++cp);
+ MEMCMP(ap->bp, cp->name, ap->len); ++cp);
if (cp->name == NULL ||
(newscreen && !F_ISSET(cp, E_NEWSCREEN))) {
const char *nstr;
Home |
Main Index |
Thread Index |
Old Index