=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/nfa.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -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 +1,4 @@ -/* $OpenBSD: nfa.c,v 1.6 2002/05/30 10:53:44 deraadt Exp $ */ +/* $OpenBSD: nfa.c,v 1.7 2002/05/31 00:56:21 deraadt Exp $ */ /* nfa - NFA construction routines */ @@ -28,7 +28,7 @@ * 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 $ */ +/* $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,7 +215,7 @@ if ( continued_action ) --rule_linenum[num_rules]; - snprintf( action_text, sizeof action_text, "case %d:\n", num_rules ); + sprintf( action_text, "case %d:\n", num_rules ); add_action( action_text ); if ( variable_trail_rule ) @@ -247,16 +247,14 @@ if ( headcnt > 0 ) { - snprintf( action_text, sizeof action_text, - "%s = %s + %d;\n", - scanner_cp, scanner_bp, headcnt ); + sprintf( 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", + sprintf( action_text, "%s -= %d;\n", scanner_cp, trailcnt ); add_action( action_text ); }