summaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-18 15:46:40 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-18 15:46:40 +0000
commit1f3d5d0d243ba2ce38d5faf175de2e42b9d2594c (patch)
tree72c5d0a12539a8ec2bdcbb2c141650dd76ef9cb6 /usr.bin/m4
parentf558db180032611bedf8710d17a04386719ef39f (diff)
better end-condition, fix tracing of dnl.
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c
index 4581327bf11..b2798789948 100644
--- a/usr.bin/m4/misc.c
+++ b/usr.bin/m4/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.22 2001/09/18 14:43:23 espie Exp $ */
+/* $OpenBSD: misc.c,v 1.23 2001/09/18 15:46:39 espie Exp $ */
/* $NetBSD: misc.c,v 1.6 1995/09/28 05:37:41 tls Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.22 2001/09/18 14:43:23 espie Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.23 2001/09/18 15:46:39 espie Exp $";
#endif
#endif /* not lint */
@@ -376,6 +376,6 @@ dump_buffer(f, m)
{
char *s;
- for (s = bp; s != buf + m;)
+ for (s = bp; s-buf > m;)
fputc(*--s, f);
}