=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/io.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/indent/io.c 2004/07/20 03:50:26 1.9 --- src/usr.bin/indent/io.c 2005/05/15 03:27:04 1.10 *************** *** 1,4 **** ! /* $OpenBSD: io.c,v 1.9 2004/07/20 03:50:26 deraadt Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. --- 1,4 ---- ! /* $OpenBSD: io.c,v 1.10 2005/05/15 03:27:04 millert Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. *************** *** 33,39 **** #ifndef lint /*static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.9 2004/07/20 03:50:26 deraadt Exp $"; #endif /* not lint */ #include --- 33,39 ---- #ifndef lint /*static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.10 2005/05/15 03:27:04 millert Exp $"; #endif /* not lint */ #include *************** *** 372,378 **** } buf_ptr = in_buffer; buf_end = p; ! if (p[-2] == '/' && p[-3] == '*') { if (in_buffer[3] == 'I' && strncmp(in_buffer, "/**INDENT**", 11) == 0) fill_buffer(); /* flush indent error message */ else { --- 372,378 ---- } buf_ptr = in_buffer; buf_end = p; ! if (p - 3 >= in_buffer && p[-2] == '/' && p[-3] == '*') { if (in_buffer[3] == 'I' && strncmp(in_buffer, "/**INDENT**", 11) == 0) fill_buffer(); /* flush indent error message */ else {