Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vi/ex the last revision introduced a bug in the hand...
details: https://anonhg.NetBSD.org/src/rev/06767eecc637
branches: trunk
changeset: 585093:06767eecc637
user: aymeric <aymeric%NetBSD.org@localhost>
date: Sun Oct 16 15:58:59 2005 +0000
description:
the last revision introduced a bug in the handling of escape characters while
trying to correct a corner case. I will work on a final solution later.
Thanks to David Brownlee for noticing and notifying me.
diffstat:
usr.bin/vi/ex/ex_argv.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 2dc435d00bea -r 06767eecc637 usr.bin/vi/ex/ex_argv.c
--- a/usr.bin/vi/ex/ex_argv.c Sun Oct 16 14:36:28 2005 +0000
+++ b/usr.bin/vi/ex/ex_argv.c Sun Oct 16 15:58:59 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_argv.c,v 1.15 2005/10/08 12:41:48 aymeric Exp $ */
+/* $NetBSD: ex_argv.c,v 1.16 2005/10/16 15:58:59 aymeric Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -16,7 +16,7 @@
#if 0
static const char sccsid[] = "@(#)ex_argv.c 10.26 (Berkeley) 9/20/96";
#else
-__RCSID("$NetBSD: ex_argv.c,v 1.15 2005/10/08 12:41:48 aymeric Exp $");
+__RCSID("$NetBSD: ex_argv.c,v 1.16 2005/10/16 15:58:59 aymeric Exp $");
#endif
#endif /* not lint */
@@ -310,8 +310,7 @@
off = exp->argsoff;
exp->args[off]->len = len;
for (p = exp->args[off]->bp; len > 0; --len, *p++ = *ap++)
- if ((IS_ESCAPE(sp, excp, *ap) || *ap == '\\') &&
- len > 1)
+ if (IS_ESCAPE(sp, excp, *ap) || *ap == '\\')
++ap;
*p = '\0';
}
Home |
Main Index |
Thread Index |
Old Index