=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/indent.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/indent/indent.c 2000/06/30 16:00:15 1.7 --- src/usr.bin/indent/indent.c 2000/07/25 17:08:12 1.8 *************** *** 1,4 **** ! /* $OpenBSD: indent.c,v 1.7 2000/06/30 16:00:15 millert Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. --- 1,4 ---- ! /* $OpenBSD: indent.c,v 1.8 2000/07/25 17:08:12 espie Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. *************** *** 45,51 **** #ifndef lint /*static char sccsid[] = "from: @(#)indent.c 5.16 (Berkeley) 2/26/91";*/ ! static char rcsid[] = "$OpenBSD: indent.c,v 1.7 2000/06/30 16:00:15 millert Exp $"; #endif /* not lint */ #include --- 45,51 ---- #ifndef lint /*static char sccsid[] = "from: @(#)indent.c 5.16 (Berkeley) 2/26/91";*/ ! static char rcsid[] = "$OpenBSD: indent.c,v 1.8 2000/07/25 17:08:12 espie Exp $"; #endif /* not lint */ #include *************** *** 996,1002 **** if (buf_ptr >= buf_end) fill_buffer(); } ! while (*buf_ptr != '\n' || in_comment) { CHECK_SIZE_LAB; *e_lab = *buf_ptr++; if (buf_ptr >= buf_end) --- 996,1002 ---- if (buf_ptr >= buf_end) fill_buffer(); } ! while (*buf_ptr != '\n' || (in_comment && !had_eof)) { CHECK_SIZE_LAB; *e_lab = *buf_ptr++; if (buf_ptr >= buf_end)