diff options
author | Slávek Banko <[email protected]> | 2012-08-18 18:42:49 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-08-18 18:44:21 +0200 |
commit | 274736cacfd96f974f12d317ff1c2a6876c30033 (patch) | |
tree | 8eade4a05e08d556273fd6829225bb8f353410ed | |
parent | c550060e7f977ab7aba7fcb77b8b0a9c3aecf74a (diff) | |
download | kpicosim-274736cacfd96f974f12d317ff1c2a6876c30033.tar.gz kpicosim-274736cacfd96f974f12d317ff1c2a6876c30033.zip |
Fix 'format not a string literal' error
Thanks to Francois Andriot for the patch
(cherry picked from commit b58489be771060b866f8a4cbc2499eac352cb251)
-rwxr-xr-x | src/cassembler.cpp | 2 |
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 ; } |