-/* $OpenBSD: print.c,v 1.4 1996/12/14 12:18:04 mickey Exp $ */
+/* $OpenBSD: print.c,v 1.5 1996/12/17 18:52:52 tholo Exp $ */
/* $NetBSD: print.c,v 1.14 1995/09/07 06:43:00 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)print.c 8.5 (Berkeley) 7/28/94";
#else
-static char rcsid[] = "$OpenBSD: print.c,v 1.4 1996/12/14 12:18:04 mickey Exp $";
+static char rcsid[] = "$OpenBSD: print.c,v 1.5 1996/12/17 18:52:52 tholo Exp $";
#endif
#endif /* not lint */
dp->s_block);
if ((base += numrows) >= num)
break;
- while ((cnt = (chcnt + (TAB & ~(TAB - 1)))) <= endcol) {
+ while ((cnt = ((chcnt + TAB) & ~(TAB - 1))) <= endcol) {
(void)putchar('\t');
chcnt = cnt;
}