=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dc/inout.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/dc/inout.c 2005/03/15 10:28:38 1.9 +++ src/usr.bin/dc/inout.c 2005/03/27 18:10:42 1.10 @@ -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 @@ -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 @@ -27,7 +27,7 @@ #include "extern.h" -#define MAX_CHARS_PER_LINE 68 +#define MAX_CHARS_PER_LINE 69 static int charCount; @@ -155,7 +155,7 @@ 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); }