=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/nfa.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/lex/nfa.c 2002/05/30 10:53:44 1.6 --- src/usr.bin/lex/nfa.c 2002/05/31 00:56:21 1.7 *************** *** 1,4 **** ! /* $OpenBSD: nfa.c,v 1.6 2002/05/30 10:53:44 deraadt Exp $ */ /* nfa - NFA construction routines */ --- 1,4 ---- ! /* $OpenBSD: nfa.c,v 1.7 2002/05/31 00:56:21 deraadt Exp $ */ /* nfa - NFA construction routines */ *************** *** 28,34 **** * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ ! /* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/nfa.c,v 1.6 2002/05/30 10:53:44 deraadt Exp $ */ #include "flexdef.h" --- 28,34 ---- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ ! /* $Header: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/nfa.c,v 1.7 2002/05/31 00:56:21 deraadt Exp $ */ #include "flexdef.h" *************** *** 215,221 **** if ( continued_action ) --rule_linenum[num_rules]; ! snprintf( action_text, sizeof action_text, "case %d:\n", num_rules ); add_action( action_text ); if ( variable_trail_rule ) --- 215,221 ---- if ( continued_action ) --rule_linenum[num_rules]; ! sprintf( action_text, "case %d:\n", num_rules ); add_action( action_text ); if ( variable_trail_rule ) *************** *** 247,262 **** if ( headcnt > 0 ) { ! snprintf( action_text, sizeof action_text, ! "%s = %s + %d;\n", ! scanner_cp, scanner_bp, headcnt ); add_action( action_text ); } else { ! snprintf( action_text, sizeof action_text, ! "%s -= %d;\n", scanner_cp, trailcnt ); add_action( action_text ); } --- 247,260 ---- if ( headcnt > 0 ) { ! sprintf( action_text, "%s = %s + %d;\n", ! scanner_cp, scanner_bp, headcnt ); add_action( action_text ); } else { ! sprintf( action_text, "%s -= %d;\n", scanner_cp, trailcnt ); add_action( action_text ); }