summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-03-27 18:10:43 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-03-27 18:10:43 +0000
commitd45a6f9e5a698a987f9980221efade27f1b47dd3 (patch)
treea476d9c1570a1dda260ea59a341a057c04299c2f /usr.bin
parente9a81ff478e726ad486d829d3d55bd84072634f8 (diff)
Use inclusive bound check for line length, it is more clear.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dc/inout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 8bfa48b8284..36d205b61b1 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inout.c,v 1.9 2005/03/15 10:28:38 otto Exp $ */
+/* $OpenBSD: inout.c,v 1.10 2005/03/27 18:10:42 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: inout.c,v 1.9 2005/03/15 10:28:38 otto Exp $";
+static const char rcsid[] = "$OpenBSD: inout.c,v 1.10 2005/03/27 18:10:42 otto Exp $";
#endif /* not lint */
#include <ssl/ssl.h>
@@ -27,7 +27,7 @@ static const char rcsid[] = "$OpenBSD: inout.c,v 1.9 2005/03/15 10:28:38 otto Ex
#include "extern.h"
-#define MAX_CHARS_PER_LINE 68
+#define MAX_CHARS_PER_LINE 69
static int charCount;
@@ -155,7 +155,7 @@ static void
putcharwrap(FILE *f, int ch)
{
putc(ch, f);
- if (++charCount > MAX_CHARS_PER_LINE) {
+ if (++charCount >= MAX_CHARS_PER_LINE) {
charCount = 0;
fputs("\\\n", f);
}