summaryrefslogtreecommitdiff
path: root/usr.bin/lex/main.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-31 00:56:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-31 00:56:22 +0000
commit6b7a52ca1922439c3c1c7c277264e0d06d49628e (patch)
tree8f291721a9210def36a73d66f984ae93759dbf42 /usr.bin/lex/main.c
parentd5732ae44369e0dad10e3ebf6351531d6f840d37 (diff)
undo until i find my #line bug
Diffstat (limited to 'usr.bin/lex/main.c')
-rw-r--r--usr.bin/lex/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c
index d174b03b947..438be7e2cea 100644
--- a/usr.bin/lex/main.c
+++ b/usr.bin/lex/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.6 2002/05/30 10:53:44 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.7 2002/05/31 00:56:21 deraadt Exp $ */
/* flex - tool to generate fast lexical analyzers */
@@ -34,7 +34,7 @@ char copyright[] =
All rights reserved.\n";
#endif /* not lint */
-/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.6 2002/05/30 10:53:44 deraadt Exp $ */
+/* $Header: /cvs/OpenBSD/src/usr.bin/lex/main.c,v 1.7 2002/05/31 00:56:21 deraadt Exp $ */
#include "flexdef.h"
@@ -286,8 +286,8 @@ void check_options()
else
suffix = "c";
- snprintf( outfile_path, sizeof outfile_path,
- outfile_template, prefix, suffix );
+ sprintf( outfile_path, outfile_template,
+ prefix, suffix );
outfilename = outfile_path;
}
@@ -1135,7 +1135,7 @@ _( "%s [-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]\n" ),
if ( ! did_outfilename )
{
- snprintf( outfile_path, sizeof outfile_path, outfile_template,
+ sprintf( outfile_path, outfile_template,
prefix, C_plus_plus ? "cc" : "c" );
outfilename = outfile_path;
}