diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-07 21:40:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-02-07 21:40:50 +0000 |
commit | 7eb49b5c061d88eb3bb8ebcd783cc8958f96d2cc (patch) | |
tree | 2b090aeaf73b25a8c5b94bc0668d850fd42a53e0 /usr.bin/fold | |
parent | 1af8bcf3cbab9afd00f22106db7b0e396a45d76d (diff) |
fix fold -s early break; helbig@Informatik.BA-Stuttgart.DE
Diffstat (limited to 'usr.bin/fold')
-rw-r--r-- | usr.bin/fold/fold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/fold/fold.c b/usr.bin/fold/fold.c index 5f3c47c8bf9..abd783848aa 100644 --- a/usr.bin/fold/fold.c +++ b/usr.bin/fold/fold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fold.c,v 1.2 1996/06/26 05:33:23 deraadt Exp $ */ +/* $OpenBSD: fold.c,v 1.3 1999/02/07 21:40:49 deraadt Exp $ */ /* $NetBSD: fold.c,v 1.6 1995/09/01 01:42:44 jtc Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)fold.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: fold.c,v 1.2 1996/06/26 05:33:23 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: fold.c,v 1.3 1999/02/07 21:40:49 deraadt Exp $"; #endif /* not lint */ #include <stdio.h> @@ -168,7 +168,7 @@ fold(width) indx -= last_space; col = 0; for (i = 0; i < indx; i++) { - col = new_column_position (col, ch); + col = new_column_position (col, buf[i]); } } else { fwrite (buf, 1, indx, stdout); |