=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fold/fold.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/fold/fold.c 1996/06/26 05:33:23 1.2 +++ src/usr.bin/fold/fold.c 1999/02/07 21:40:49 1.3 @@ -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 @@ #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 @@ -168,7 +168,7 @@ 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);