summaryrefslogtreecommitdiffstats
path: root/src/cassembler.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-08-18 18:42:49 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-08-18 18:42:49 +0200
commitb58489be771060b866f8a4cbc2499eac352cb251 (patch)
tree857929a4d81008c92f30ac919ec481c161ebb4e5 /src/cassembler.cpp
parent15b4b1bb48900048d6993476ba63d3a7d11849e9 (diff)
downloadkpicosim-b58489be771060b866f8a4cbc2499eac352cb251.tar.gz
kpicosim-b58489be771060b866f8a4cbc2499eac352cb251.zip
Fix 'format not a string literal' error
Thanks to Francois Andriot for the patch
Diffstat (limited to 'src/cassembler.cpp')
-rwxr-xr-xsrc/cassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cassembler.cpp b/src/cassembler.cpp
index 2beb7f9..2527642 100755
--- a/src/cassembler.cpp
+++ b/src/cassembler.cpp
@@ -575,7 +575,7 @@ bool CAssembler::exportVHDL( string templateFile, string outputDir, string entit
for( j = 31 ; j >= 0 ; j-- )
fprintf( outfile, "%02X", INITP[ j ][ line ] ) ;
} else if ( strcmp( "name", varname ) == 0 ) {
- fprintf( outfile, entityName.c_str() ) ;
+ fprintf( outfile, "%s", entityName.c_str() ) ;
} else if ( strcmp( "begin template", varname ) == 0 ) {
copy = true ;
}